mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 11:19:09 +00:00
Fix GLIBCXX_DEBUG error triggered by incrementing erased iterator.
llvm-svn: 40897
This commit is contained in:
parent
f0a40d3dc2
commit
7eea029403
@ -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