[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocLocal.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 22 13:38:01 PST 2004
Changes in directory llvm/lib/CodeGen:
RegAllocLocal.cpp updated: 1.55 -> 1.56
---
Log message:
Another bug fix for empty MBB's
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/CodeGen/RegAllocLocal.cpp
diff -u llvm/lib/CodeGen/RegAllocLocal.cpp:1.55 llvm/lib/CodeGen/RegAllocLocal.cpp:1.56
--- llvm/lib/CodeGen/RegAllocLocal.cpp:1.55 Sun Feb 22 13:08:15 2004
+++ llvm/lib/CodeGen/RegAllocLocal.cpp Sun Feb 22 13:37:31 2004
@@ -653,7 +653,7 @@
const TargetInstrInfo &TII = TM->getInstrInfo();
MI = MBB.end();
while (MI != MBB.begin() && TII.isTerminatorInstr((--MI)->getOpcode()));
- ++MI;
+ if (MI != MBB.end()) ++MI;
// Spill all physical registers holding virtual registers now.
for (unsigned i = 0, e = RegInfo->getNumRegs(); i != e; ++i)
More information about the llvm-commits
mailing list