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:
parent
ecc08b8cfe
commit
a8cd3b538d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user