diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-05-11 23:53:13 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-11 23:53:13 +0000 |
| commit | 69b8f42400eb71ceea6c30380460dbdc6b6a43a0 (patch) | |
| tree | 689013de69403552a4df5aa67684fd992b223726 | |
| parent | 53ce0e12d89ed249e413da244c8073951baf258f (diff) | |
| download | bcm5719-llvm-69b8f42400eb71ceea6c30380460dbdc6b6a43a0.tar.gz bcm5719-llvm-69b8f42400eb71ceea6c30380460dbdc6b6a43a0.zip | |
Make Clang happy.
llvm-svn: 103528
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index 6dc053448ca..b452a00a90f 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/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! } |

