1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Reverse iterator - should be incrementing rather than decrementing.

llvm-svn: 150778
This commit is contained in:
Lang Hames 2012-02-17 01:54:11 +00:00
parent ecc08b8cfe
commit a8cd3b538d

View File

@ -904,9 +904,9 @@ MachineInstr* MachineInstr::getBundleStart() {
if (!isInsideBundle())
return this;
MachineBasicBlock::reverse_instr_iterator MII(this);
--MII;
++MII;
while (MII->isInsideBundle())
--MII;
++MII;
return &*MII;
}