aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/RegAllocLocal.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-02-20 12:07:57 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-02-20 12:07:57 +0000
commit4aefd6b7d4dadf8109221a89742725c116d8f8e0 (patch)
treeb6cea47a8fde646984abfe138325ccc046923420 /lib/CodeGen/RegAllocLocal.cpp
parent44a2a79f1865807cf976932fac00648f60edfdbe (diff)
downloadexternal_llvm-4aefd6b7d4dadf8109221a89742725c116d8f8e0.zip
external_llvm-4aefd6b7d4dadf8109221a89742725c116d8f8e0.tar.gz
external_llvm-4aefd6b7d4dadf8109221a89742725c116d8f8e0.tar.bz2
Fix newly-introduced 4.3 warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r--lib/CodeGen/RegAllocLocal.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp
index b14af27..765e7ff 100644
--- a/lib/CodeGen/RegAllocLocal.cpp
+++ b/lib/CodeGen/RegAllocLocal.cpp
@@ -775,11 +775,12 @@ void RALocal::AllocateBasicBlock(MachineBasicBlock &MBB) {
// Spill all physical registers holding virtual registers now.
for (unsigned i = 0, e = TRI->getNumRegs(); i != e; ++i)
- if (PhysRegsUsed[i] != -1 && PhysRegsUsed[i] != -2)
+ if (PhysRegsUsed[i] != -1 && PhysRegsUsed[i] != -2) {
if (unsigned VirtReg = PhysRegsUsed[i])
spillVirtReg(MBB, MI, VirtReg, i);
else
removePhysReg(i);
+ }
#if 0
// This checking code is very expensive.