summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-01-11 22:13:48 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-01-11 22:13:48 +0000
commit982493300e26867af6e8c39047a2e7986dbda133 (patch)
treea4f0b021c3cd40a740c3ad04dbfa7461cae3c536 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent1b8121b2279119a079b0becfee7f0e227f76ed73 (diff)
downloadbcm5719-llvm-982493300e26867af6e8c39047a2e7986dbda133.tar.gz
bcm5719-llvm-982493300e26867af6e8c39047a2e7986dbda133.zip
ignore register #0
llvm-svn: 25223
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 4ecea2f42b2..a89660bb4b4 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2078,7 +2078,7 @@ void SDNode::dump(const SelectionDAG *G) const {
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();
OpenPOWER on IntegriCloud