Reverse iterator - should be incrementing rather than decrementing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150778 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2012-02-17 01:54:11 +00:00
parent 8f5e8c1cd6
commit 00195d828b

View File

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