diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-09 20:20:16 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-09 20:20:16 +0000 |
commit | 7bd1f7cb585fc66c65120d114abc02b91156398f (patch) | |
tree | 7b764e374dcce04112de796edde398a737686489 /llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp | |
parent | 542510925b1d5c3cbaa0d13d1ec2889d06ea5328 (diff) | |
download | llvm-7bd1f7cb585fc66c65120d114abc02b91156398f.zip llvm-7bd1f7cb585fc66c65120d114abc02b91156398f.tar.gz llvm-7bd1f7cb585fc66c65120d114abc02b91156398f.tar.bz2 |
Remove the remaining uses of abs64 and nuke it.
std::abs works just fine and we're already using it in many places. NFC intended.
llvm-svn: 231696
Diffstat (limited to 'llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp b/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp index 64e2c2b..9b74648 100644 --- a/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp +++ b/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp @@ -124,7 +124,7 @@ static unsigned getNewAlignmentDiff(const SCEV *DiffSCEV, // If the displacement is not an exact multiple, but the remainder is a // constant, then return this remainder (but only if it is a power of 2). - uint64_t DiffUnitsAbs = abs64(DiffUnits); + uint64_t DiffUnitsAbs = std::abs(DiffUnits); if (isPowerOf2_64(DiffUnitsAbs)) return (unsigned) DiffUnitsAbs; } |