summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-19 21:34:13 +0000
committerChris Lattner <sabre@nondot.org>2005-08-19 21:34:13 +0000
commit0875d1ab896690d4671bbcc0465e734e601946d2 (patch)
tree62e1ac74cb0d85c8c63e2b2d8a0dee8de90498d1 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent65d66797a5ef7c6c680fb1e2203264646c7d2cd2 (diff)
downloadbcm5719-llvm-0875d1ab896690d4671bbcc0465e734e601946d2.tar.gz
bcm5719-llvm-0875d1ab896690d4671bbcc0465e734e601946d2.zip
Fix a bug in previous commit
llvm-svn: 22936
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index e083609cae6..fdefa930285 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -17,6 +17,7 @@
#include "llvm/Assembly/Writer.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/Support/MathExtras.h"
+#include "llvm/Target/MRegisterInfo.h"
#include "llvm/Target/TargetLowering.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetMachine.h"
@@ -2069,7 +2070,7 @@ void SDNode::dump(const SelectionDAG *G) const {
if (LBB)
std::cerr << LBB->getName() << " ";
std::cerr << (const void*)BBDN->getBasicBlock() << ">";
- } else if (const RegisterSDNode *C2V = dyn_cast<RegisterSDNode>(this)) {
+ } else if (const RegisterSDNode *R = dyn_cast<RegisterSDNode>(this)) {
if (G && MRegisterInfo::isPhysicalRegister(R->getReg())) {
std::cerr << " " <<G->getTarget().getRegisterInfo()->getName(R->getReg());
} else {
OpenPOWER on IntegriCloud