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:
156b2df
)
PHI->removeIncomingValue may remove PHInode.
author
Devang Patel
<dpatel@apple.com>
Thu, 27 Mar 2008 17:32:46 +0000
(17:32 +0000)
committer
Devang Patel
<dpatel@apple.com>
Thu, 27 Mar 2008 17:32:46 +0000
(17:32 +0000)
Increment iterator in advance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48890
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopIndexSplit.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopIndexSplit.cpp
b/lib/Transforms/Scalar/LoopIndexSplit.cpp
index 513cad8a5666207f9625201ee9d33b7d3559b352..8053554c17c12d13764797c19c224ada0dc5a4e5 100644
(file)
--- a/
lib/Transforms/Scalar/LoopIndexSplit.cpp
+++ b/
lib/Transforms/Scalar/LoopIndexSplit.cpp
@@
-1647,8
+1647,9
@@
void LoopIndexSplit::updatePHINodes(BasicBlock *ExitBB, BasicBlock *Latch,
Loop *LP) {
for (BasicBlock::iterator BI = ExitBB->begin(), BE = ExitBB->end();
- BI != BE;
++BI
) {
+ BI != BE; ) {
PHINode *PN = dyn_cast<PHINode>(BI);
+ ++BI;
if (!PN)
break;