mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
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
This commit is contained in:
parent
b9efd14568
commit
dfd58709cc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user