mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Fix GLIBCXX_DEBUG error triggered by incrementing erased iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40897 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7e23146ab9
commit
8ff18e9c99
@ -777,8 +777,8 @@ void LoopUnswitch::UnswitchNontrivialCondition(Value *LIC, Constant *Val,
|
||||
if (LBBI != DF->end()) {
|
||||
DominanceFrontier::DomSetType &LBSet = LBBI->second;
|
||||
for (DominanceFrontier::DomSetType::iterator LI = LBSet.begin(),
|
||||
LE = LBSet.end(); LI != LE; ++LI) {
|
||||
BasicBlock *B = *LI;
|
||||
LE = LBSet.end(); LI != LE; /* NULL */) {
|
||||
BasicBlock *B = *LI++;
|
||||
if (OutSiders.count(B))
|
||||
DF->removeFromFrontier(LBBI, B);
|
||||
}
|
||||
@ -789,8 +789,8 @@ void LoopUnswitch::UnswitchNontrivialCondition(Value *LIC, Constant *Val,
|
||||
if (NBBI != DF->end()) {
|
||||
DominanceFrontier::DomSetType NBSet = NBBI->second;
|
||||
for (DominanceFrontier::DomSetType::iterator NI = NBSet.begin(),
|
||||
NE = NBSet.end(); NI != NE; ++NI) {
|
||||
BasicBlock *B = *NI;
|
||||
NE = NBSet.end(); NI != NE; /* NULL */) {
|
||||
BasicBlock *B = *NI++;
|
||||
if (OutSiders.count(B))
|
||||
DF->removeFromFrontier(NBBI, B);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user