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:
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
513cad8
..
8053554
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;