mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
Fix a iterator out of bounds error, that triggers rarely.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141665 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f048c3fe24
commit
56354d48bb
@ -290,6 +290,8 @@ static void removeHBR( MachineBasicBlock &MBB) {
|
||||
if (I->getOpcode() == SPU::HBRA ||
|
||||
I->getOpcode() == SPU::HBR_LABEL){
|
||||
I=MBB.erase(I);
|
||||
if (I == MBB.end())
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user