mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Avoid finalizeBundles infinite looping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152089 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
afd3d56b9d
commit
8250d7385a
@ -229,6 +229,8 @@ bool llvm::finalizeBundles(MachineFunction &MF) {
|
||||
"First instr cannot be inside bundle before finalization!");
|
||||
|
||||
MachineBasicBlock::instr_iterator MIE = MBB.instr_end();
|
||||
if (MII == MIE)
|
||||
continue;
|
||||
for (++MII; MII != MIE; ) {
|
||||
if (!MII->isInsideBundle())
|
||||
++MII;
|
||||
|
Loading…
Reference in New Issue
Block a user