[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Dec 23 17:45:01 PST 2002
Changes in directory llvm/lib/CodeGen:
RegAllocSimple.cpp updated: 1.32 -> 1.33
---
Log message:
Fix compilation on GCC 2.96
---
Diffs of the changes:
Index: llvm/lib/CodeGen/RegAllocSimple.cpp
diff -u llvm/lib/CodeGen/RegAllocSimple.cpp:1.32 llvm/lib/CodeGen/RegAllocSimple.cpp:1.33
--- llvm/lib/CodeGen/RegAllocSimple.cpp:1.32 Tue Dec 17 19:11:14 2002
+++ llvm/lib/CodeGen/RegAllocSimple.cpp Mon Dec 23 17:44:04 2002
@@ -346,7 +346,7 @@
///
void RegAllocSimple::EmitEpilogue(MachineBasicBlock &MBB) {
// Insert instructions before the return.
- MachineBasicBlock::iterator I = --MBB.end();
+ MachineBasicBlock::iterator I = MBB.end()-1;
const unsigned *CSRegs = RegInfo->getCalleeSaveRegs();
for (unsigned i = 0; CSRegs[i]; ++i) {
More information about the llvm-commits
mailing list