Fix debugging output.
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Mon, 2 Feb 2004 22:00:32 +0000 (22:00 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Mon, 2 Feb 2004 22:00:32 +0000 (22:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11088 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocLinearScan.cpp

index 69c3120275e9486190094b44a500643aa96f8ccc..26c1417fa0fa6d0be1be01be8f9eda850a23bca7 100644 (file)
@@ -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);
                     }