diff options
-rw-r--r-- | lib/CodeGen/RegAllocFast.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/RegAllocFast.cpp b/lib/CodeGen/RegAllocFast.cpp index 6dc053448c..b452a00a90 100644 --- a/lib/CodeGen/RegAllocFast.cpp +++ b/lib/CodeGen/RegAllocFast.cpp @@ -584,9 +584,9 @@ void RAFast::AllocateBasicBlock(MachineBasicBlock &MBB) { if (!MO.isReg()) continue; unsigned Reg = MO.getReg(); if (!Reg || TargetRegisterInfo::isPhysicalRegister(Reg)) continue; - LiveRegMap::iterator i = LiveVirtRegs.find(Reg); - if (i != LiveVirtRegs.end()) - setPhysReg(MO, i->second.PhysReg); + LiveRegMap::iterator it = LiveVirtRegs.find(Reg); + if (it != LiveVirtRegs.end()) + setPhysReg(MO, it->second.PhysReg); else MO.setReg(0); // We can't allocate a physreg for a DebugValue, sorry! } |