summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-11 23:53:13 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-11 23:53:13 +0000
commit0efd768aeac9576e9a8ebb8a693f4a00bc6ecbbc (patch)
treebb98a7890f608fe1cba48b96b2a3410707048dd5 /lib
parentdb4c7e606f6bcc42ed8d853be5d67dfb9fa0edee (diff)
downloadllvm-0efd768aeac9576e9a8ebb8a693f4a00bc6ecbbc.tar.gz
llvm-0efd768aeac9576e9a8ebb8a693f4a00bc6ecbbc.tar.bz2
llvm-0efd768aeac9576e9a8ebb8a693f4a00bc6ecbbc.tar.xz
Make Clang happy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/RegAllocFast.cpp6
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!
}