aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-02 22:00:32 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-02 22:00:32 +0000
commitcc6a1290fc91716f7d81a637171cae59678f1f6c (patch)
treef666e1faadf4e5e28a697b922835f9bd196971b4 /lib/CodeGen/RegAllocLinearScan.cpp
parenteea81bafd624c36d396a08bea87bafd996e6bf43 (diff)
Fix debugging output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index 69c3120275..26c1417fa0 100644
--- a/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/lib/CodeGen/RegAllocLinearScan.cpp
@@ -443,7 +443,7 @@ bool RA::runOnMachineFunction(MachineFunction &fn) {
unsigned virtReg = op.getAllocatedRegNum();
Virt2PhysMap::const_iterator it = v2pMap_.find(virtReg);
if (it != v2pMap_.end()) {
- DEBUG(std::cerr << "\t\t\t%reg" << it->second
+ DEBUG(std::cerr << "\t\t\t%reg" << it->first
<< " -> " << mri_->getName(it->second) << '\n');
(*currentInstr_)->SetMachineOperandReg(i, it->second);
}