llvm.org GIT mirror llvm / f56817c
Merging r168622: into 3.2 release branch. Don't use iterator after being erased. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_32@168947 91177308-0d34-0410-b5e6-96231b3b80d8 Pawel Wodnicki 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
428428 DEBUG(dbgs() << "Exiting: " << MBB->getName() << '\n');
429429 DenseMap::iterator SI = ScopeMap.find(MBB);
430430 assert(SI != ScopeMap.end());
431 delete SI->second;
431432 ScopeMap.erase(SI);
432 delete SI->second;
433433 }
434434
435435 bool MachineCSE::ProcessBlock(MachineBasicBlock *MBB) {