Unbreak the build


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12956 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index f96cd5d..8a2a8dc 100644
--- a/lib/Analysis/ScalarEvolution.cpp
+++ b/lib/Analysis/ScalarEvolution.cpp
@@ -2490,6 +2490,7 @@
       if ((*UI)->getType() == Ty)
         if (CastInst *CI = dyn_cast<CastInst>(cast<Instruction>(*UI))) {
           BasicBlock::iterator It = I; ++It;
+          while (isa<PHINode>(It)) ++It;
           if (It != BasicBlock::iterator(CI)) {
             // Splice the cast immediately after the operand in question.
             I->getParent()->getInstList().splice(It,