[llvm-commits] CVS: llvm/lib/CodeGen/PrologEpilogInserter.cpp

Chris Lattner lattner at persephone.cs.uiuc.edu
Sun Aug 28 17:11:19 PDT 2005



Changes in directory llvm/lib/CodeGen:

PrologEpilogInserter.cpp updated: 1.45 -> 1.46
---
Log message:

Fix a bug in my previous patch that was using the wrong iterator.  This fixes
Olden/bisort among others.


---
Diffs of the changes:  (+1 -1)

 PrologEpilogInserter.cpp |    2 +-
 1 files changed, 1 insertion, 1 deletion


Index: llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff -u llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.45 llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.46
--- llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.45	Fri Aug 26 17:18:32 2005
+++ llvm/lib/CodeGen/PrologEpilogInserter.cpp	Sun Aug 28 19:10:46 2005
@@ -217,7 +217,7 @@
       while (I2 != MBB->begin() && TII.isTerminatorInstr((--I2)->getOpcode()))
         I = I2;
 
-      bool AtStart = I2 == MBB->begin();
+      bool AtStart = I == MBB->begin();
       MachineBasicBlock::iterator BeforeI = I;
       if (!AtStart)
         --BeforeI;






More information about the llvm-commits mailing list