projects
/
oota-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 01e4f25d0746aefbcaf3debebdecc702c9205ab0..0c35b11df2e5a6d0366ffa46a4b1089f0b6dbdab 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;