projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
InstCombine: Remove ilist iterator implicit conversions, NFC
[oota-llvm.git]
/
lib
/
Transforms
/
InstCombine
/
InstCombineVectorOps.cpp
diff --git
a/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
b/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
index 1896d48d1f3c1d4f28f1faa458a782e7e64283c6..35d1e336476ef433914713be2f070bba118d8478 100644
(file)
--- a/
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
+++ b/
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
@@
-115,8
+115,7
@@
Instruction *InstCombiner::scalarizePHI(ExtractElementInst &EI, PHINode *PN) {
Instruction *pos = dyn_cast<Instruction>(PHIInVal);
BasicBlock::iterator InsertPos;
if (pos && !isa<PHINode>(pos)) {
- InsertPos = pos;
- ++InsertPos;
+ InsertPos = ++pos->getIterator();
} else {
InsertPos = inBB->getFirstInsertionPt();
}