mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
MBB::remove should not modify the iterator passed in
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12572 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -648,7 +648,8 @@ RecordSchedule(MachineBasicBlock &MBB, const SchedulingManager& S)
|
||||
|
||||
// Remove all except the dummy PHI instructions from MBB, and
|
||||
// pre-allocate create space for the ones we will put back in.
|
||||
while (I != MBB.end()) MBB.remove(I);
|
||||
while (I != MBB.end())
|
||||
MBB.remove(I++);
|
||||
|
||||
InstrSchedule::const_iterator NIend = S.isched.end();
|
||||
for (InstrSchedule::const_iterator NI = S.isched.begin(); NI != NIend; ++NI)
|
||||
|
Reference in New Issue
Block a user