mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Do not walk invalid iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42812 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cd80c169d7
commit
b593898e11
@ -632,8 +632,8 @@ void LoopUnswitch::ReplaceLoopExternalDFMember(Loop *L, BasicBlock *BB,
|
||||
|
||||
DominanceFrontier::DomSetType &DFSet = DFI->second;
|
||||
for (DominanceFrontier::DomSetType::iterator DI = DFSet.begin(),
|
||||
DE = DFSet.end(); DI != DE; ++DI) {
|
||||
BasicBlock *B = *DI;
|
||||
DE = DFSet.end(); DI != DE;) {
|
||||
BasicBlock *B = *DI++;
|
||||
if (L->contains(B))
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user