Unbreak the build

llvm-svn: 12956
This commit is contained in:
Chris Lattner 2004-04-15 14:17:43 +00:00
parent d420fe63ea
commit a4e4a63856
1 changed files with 1 additions and 0 deletions

View File

@ -2490,6 +2490,7 @@ Value *ScalarEvolutionRewriter::ExpandCodeFor(SCEVHandle SH,
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,