diff options
-rw-r--r-- | polly/lib/CodeGen/BlockGenerators.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp index 38e1e56adc1..dc5d91ab9b0 100644 --- a/polly/lib/CodeGen/BlockGenerators.cpp +++ b/polly/lib/CodeGen/BlockGenerators.cpp @@ -64,7 +64,7 @@ Value *BlockGenerator::trySynthesizeNewValue(ScopStmt &Stmt, Value *Old, LoopToScevMapT <S, Loop *L) const { if (SE.isSCEVable(Old->getType())) - if (const SCEV *Scev = SE.getSCEVAtScope(const_cast<Value *>(Old), L)) { + if (const SCEV *Scev = SE.getSCEVAtScope(Old, L)) { if (!isa<SCEVCouldNotCompute>(Scev)) { const SCEV *NewScev = apply(Scev, LTS, SE); ValueMapT VTV; |