aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/VectorUtils.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-12-17 20:28:46 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-12-17 20:28:46 +0000
commit0de2feceb1dd0aebbba4fe98032d7ecb46b0e663 (patch)
tree1d14beb84e672fc1bbcc2a0e52930ac1b48ca941 /llvm/lib/Analysis/VectorUtils.cpp
parent24fbef55f9d4c1233e3de29bd236d20afdea536c (diff)
downloadllvm-0de2feceb1dd0aebbba4fe98032d7ecb46b0e663.zip
llvm-0de2feceb1dd0aebbba4fe98032d7ecb46b0e663.tar.gz
llvm-0de2feceb1dd0aebbba4fe98032d7ecb46b0e663.tar.bz2
[SCEV] Add and use SCEVConstant::getAPInt; NFCI
llvm-svn: 255921
Diffstat (limited to 'llvm/lib/Analysis/VectorUtils.cpp')
-rw-r--r--llvm/lib/Analysis/VectorUtils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/VectorUtils.cpp b/llvm/lib/Analysis/VectorUtils.cpp
index 5fb517e8..4b244ec 100644
--- a/llvm/lib/Analysis/VectorUtils.cpp
+++ b/llvm/lib/Analysis/VectorUtils.cpp
@@ -324,8 +324,7 @@ Value *llvm::getStrideFromPointer(Value *Ptr, ScalarEvolution *SE, Loop *Lp) {
if (M->getOperand(0)->getSCEVType() != scConstant)
return nullptr;
- const APInt &APStepVal =
- cast<SCEVConstant>(M->getOperand(0))->getValue()->getValue();
+ const APInt &APStepVal = cast<SCEVConstant>(M->getOperand(0))->getAPInt();
// Huge step value - give up.
if (APStepVal.getBitWidth() > 64)