1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Unbreak the build

llvm-svn: 12956
This commit is contained in:
Chris Lattner 2004-04-15 14:17:43 +00:00
parent 276a6e102c
commit ff600e280d

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,