summaryrefslogtreecommitdiff
path: root/lib/CodeGen/PrologEpilogInserter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-29 00:10:46 +0000
committerChris Lattner <sabre@nondot.org>2005-08-29 00:10:46 +0000
commitdfd58709cc78e841ef4a50ba75d940473031617e (patch)
treeecab6700cd26c68a93e0ddd98db1a06f93474e42 /lib/CodeGen/PrologEpilogInserter.cpp
parentb9efd14568531fc5d6150a4471c1bfb6cb98928f (diff)
downloadllvm-dfd58709cc78e841ef4a50ba75d940473031617e.tar.gz
llvm-dfd58709cc78e841ef4a50ba75d940473031617e.tar.bz2
llvm-dfd58709cc78e841ef4a50ba75d940473031617e.tar.xz
Fix a bug in my previous patch that was using the wrong iterator. This fixes
Olden/bisort among others. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23124 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r--lib/CodeGen/PrologEpilogInserter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp
index c855eb2a0f..52026e2bc7 100644
--- a/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/lib/CodeGen/PrologEpilogInserter.cpp
@@ -217,7 +217,7 @@ void PEI::saveCallerSavedRegisters(MachineFunction &Fn) {
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;