[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Evan Cheng
evan.cheng at apple.com
Wed Jan 11 14:14:12 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.236 -> 1.237
---
Log message:
ignore register #0
---
Diffs of the changes: (+1 -1)
SelectionDAG.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.236 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.237
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.236 Wed Jan 11 15:21:00 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Wed Jan 11 16:13:48 2006
@@ -2078,7 +2078,7 @@
std::cerr << LBB->getName() << " ";
std::cerr << (const void*)BBDN->getBasicBlock() << ">";
} else if (const RegisterSDNode *R = dyn_cast<RegisterSDNode>(this)) {
- if (G && MRegisterInfo::isPhysicalRegister(R->getReg())) {
+ if (G && R->getReg() && MRegisterInfo::isPhysicalRegister(R->getReg())) {
std::cerr << " " <<G->getTarget().getRegisterInfo()->getName(R->getReg());
} else {
std::cerr << " #" << R->getReg();
More information about the llvm-commits
mailing list