projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db4c7e6
)
Make Clang happy.
author
Daniel Dunbar
<daniel@zuster.org>
Tue, 11 May 2010 23:53:13 +0000
(23:53 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Tue, 11 May 2010 23:53:13 +0000
(23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103528
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/RegAllocFast.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/RegAllocFast.cpp
b/lib/CodeGen/RegAllocFast.cpp
index 6dc053448ca1ccbaf949c4b26a1a1450ff264330..b452a00a90f212909fe4b0632c3d1bcdaa2bae64 100644
(file)
--- 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 i
t
= LiveVirtRegs.find(Reg);
+ if (i
t
!= LiveVirtRegs.end())
+ setPhysReg(MO, i
t
->second.PhysReg);
else
MO.setReg(0); // We can't allocate a physreg for a DebugValue, sorry!
}