diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-16 22:26:27 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-16 22:26:27 +0000 |
commit | a7606b993cd782c901c59ddb5015e52d8b094ce4 (patch) | |
tree | 023742e67728fca8f439069c6102942d3a6fdb84 | |
parent | 9ffc9f7a181ca7c3f6748fd9cb5174d47748ed0d (diff) | |
download | bcm5719-llvm-a7606b993cd782c901c59ddb5015e52d8b094ce4.tar.gz bcm5719-llvm-a7606b993cd782c901c59ddb5015e52d8b094ce4.zip |
Silence compiler warnings.
llvm-svn: 135358
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolutionExpander.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp index 478f555fecc..befe6d2599d 100644 --- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp @@ -849,7 +849,7 @@ SCEVExpander::getAddRecExprPHILiterally(const SCEVAddRecExpr *Normalized, const Loop *L, const Type *ExpandTy, const Type *IntTy) { - assert(!IVIncInsertLoop || IVIncInsertPos && "Uninitialized insert position"); + assert((!IVIncInsertLoop||IVIncInsertPos) && "Uninitialized insert position"); // Reuse a previously-inserted PHI, if present. for (BasicBlock::iterator I = L->getHeader()->begin(); @@ -926,10 +926,9 @@ SCEVExpander::getAddRecExprPHILiterally(const SCEVAddRecExpr *Normalized, L->getHeader()->begin()); // StartV must be hoisted into L's preheader to dominate the new phi. - Instruction *StartI = dyn_cast<Instruction>(StartV); - assert(!StartI || SE.DT->properlyDominates(StartI->getParent(), - L->getHeader()) && ""); - (void)StartI; + assert(!isa<Instruction>(StartV) || + SE.DT->properlyDominates(cast<Instruction>(StartV)->getParent(), + L->getHeader())); // Expand code for the step value. Insert instructions right before the // terminator corresponding to the back-edge. Do this before creating the PHI |