InstCombine: Remove ilist iterator implicit conversions, NFC
[oota-llvm.git] / lib / Transforms / InstCombine / InstCombineVectorOps.cpp
index 1896d48d1f3c1d4f28f1faa458a782e7e64283c6..35d1e336476ef433914713be2f070bba118d8478 100644 (file)
@@ -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)) {
       Instruction *pos = dyn_cast<Instruction>(PHIInVal);
       BasicBlock::iterator InsertPos;
       if (pos && !isa<PHINode>(pos)) {
-        InsertPos = pos;
-        ++InsertPos;
+        InsertPos = ++pos->getIterator();
       } else {
         InsertPos = inBB->getFirstInsertionPt();
       }
       } else {
         InsertPos = inBB->getFirstInsertionPt();
       }