OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd80c16
)
Do not walk invalid iterator.
author
Devang Patel
<dpatel@apple.com>
Tue, 9 Oct 2007 21:31:36 +0000
(21:31 +0000)
committer
Devang Patel
<dpatel@apple.com>
Tue, 9 Oct 2007 21:31:36 +0000
(21:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42812
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopUnswitch.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopUnswitch.cpp
b/lib/Transforms/Scalar/LoopUnswitch.cpp
index
01e4f25
..
0c35b11
100644
(file)
--- a/
lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/
lib/Transforms/Scalar/LoopUnswitch.cpp
@@
-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;