aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
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
commit0aa84fdd043a7c790be512e10f4e38b43627da81 (patch)
treef3670be96d2e577d36e63353fb9ca129f35bbfd0 /lib/Analysis
parente9fc96e7cc437d5f697e9205556099e875c4fc4e (diff)
downloadexternal_llvm-0aa84fdd043a7c790be512e10f4e38b43627da81.zip
external_llvm-0aa84fdd043a7c790be512e10f4e38b43627da81.tar.gz
external_llvm-0aa84fdd043a7c790be512e10f4e38b43627da81.tar.bz2
Unbreak the build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12956 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/ScalarEvolution.cpp1
1 files changed, 1 insertions, 0 deletions
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 @@ 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,