mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Make Clang happy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103528 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
db4c7e606f
commit
0efd768aea
@ -584,9 +584,9 @@ void RAFast::AllocateBasicBlock(MachineBasicBlock &MBB) {
|
|||||||
if (!MO.isReg()) continue;
|
if (!MO.isReg()) continue;
|
||||||
unsigned Reg = MO.getReg();
|
unsigned Reg = MO.getReg();
|
||||||
if (!Reg || TargetRegisterInfo::isPhysicalRegister(Reg)) continue;
|
if (!Reg || TargetRegisterInfo::isPhysicalRegister(Reg)) continue;
|
||||||
LiveRegMap::iterator i = LiveVirtRegs.find(Reg);
|
LiveRegMap::iterator it = LiveVirtRegs.find(Reg);
|
||||||
if (i != LiveVirtRegs.end())
|
if (it != LiveVirtRegs.end())
|
||||||
setPhysReg(MO, i->second.PhysReg);
|
setPhysReg(MO, it->second.PhysReg);
|
||||||
else
|
else
|
||||||
MO.setReg(0); // We can't allocate a physreg for a DebugValue, sorry!
|
MO.setReg(0); // We can't allocate a physreg for a DebugValue, sorry!
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user