mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-21 03:32:29 +00:00
Don't use iterator after being erased.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168622 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8a66b6ab45
commit
bb8ddc7e4f
@ -429,8 +429,8 @@ void MachineCSE::ExitScope(MachineBasicBlock *MBB) {
|
||||
DEBUG(dbgs() << "Exiting: " << MBB->getName() << '\n');
|
||||
DenseMap<MachineBasicBlock*, ScopeType*>::iterator SI = ScopeMap.find(MBB);
|
||||
assert(SI != ScopeMap.end());
|
||||
ScopeMap.erase(SI);
|
||||
delete SI->second;
|
||||
ScopeMap.erase(SI);
|
||||
}
|
||||
|
||||
bool MachineCSE::ProcessBlock(MachineBasicBlock *MBB) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user