aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.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/Transforms/Scalar/AlignmentFromAssumptions.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/Transforms/Scalar/AlignmentFromAssumptions.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp b/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
index 79cd1c0..4b721d3 100644
--- a/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
+++ b/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
@@ -253,8 +253,7 @@ bool AlignmentFromAssumptions::extractAlignmentInfo(CallInst *I,
// The mask must have some trailing ones (otherwise the condition is
// trivial and tells us nothing about the alignment of the left operand).
- unsigned TrailingOnes =
- MaskSCEV->getValue()->getValue().countTrailingOnes();
+ unsigned TrailingOnes = MaskSCEV->getAPInt().countTrailingOnes();
if (!TrailingOnes)
return false;