aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-01 19:45:00 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-01 19:45:00 +0000
commit4d050d73210d15d8a86ee5967c417ddb5bee4543 (patch)
tree9bb90a2ef017168bb17a754388f47fea068b2495 /lib/Analysis/ScalarEvolutionExpander.cpp
parent10794272f1ef1f633541e27b63cceee99f1a51ce (diff)
Avoid a potential assert out if the loop increment is > 64 bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34798 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolutionExpander.cpp')
-rw-r--r--lib/Analysis/ScalarEvolutionExpander.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp
index 3d985ab885..077f67bcc2 100644
--- a/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/lib/Analysis/ScalarEvolutionExpander.cpp
@@ -143,7 +143,7 @@ Value *SCEVExpander::visitAddRecExpr(SCEVAddRecExpr *S) {
// IF the step is by one, just return the inserted IV.
if (ConstantInt *CI = dyn_cast<ConstantInt>(F))
- if (CI->getZExtValue() == 1)
+ if (CI->getValue() == 1)
return I;
// If the insert point is directly inside of the loop, emit the multiply at