From: Chris Lattner Date: Thu, 15 Apr 2004 14:17:43 +0000 (+0000) Subject: Unbreak the build X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0aa84fdd043a7c790be512e10f4e38b43627da81;p=oota-llvm.git 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 f96cd5d82b8..8a2a8dceefb 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -2490,6 +2490,7 @@ Value *ScalarEvolutionRewriter::ExpandCodeFor(SCEVHandle SH, if ((*UI)->getType() == Ty) if (CastInst *CI = dyn_cast(cast(*UI))) { BasicBlock::iterator It = I; ++It; + while (isa(It)) ++It; if (It != BasicBlock::iterator(CI)) { // Splice the cast immediately after the operand in question. I->getParent()->getInstList().splice(It,