summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-15 14:17:43 +0000
committerChris Lattner <sabre@nondot.org>2004-04-15 14:17:43 +0000
commita4e4a63856df05958a75f205478d429b17096c57 (patch)
tree044040485fc4038915734de2a2377b9ab6223701 /llvm/lib/Analysis/ScalarEvolution.cpp
parentd420fe63ea195c7d64096d604018cc42fede0fd9 (diff)
downloadbcm5719-llvm-a4e4a63856df05958a75f205478d429b17096c57.tar.gz
bcm5719-llvm-a4e4a63856df05958a75f205478d429b17096c57.zip
Unbreak the build
llvm-svn: 12956
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index f96cd5d82b8..8a2a8dceefb 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -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,
OpenPOWER on IntegriCloud