1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

[APInt] Use UINT64_MAX instead of ~uint64_t(0ULL). NFC

llvm-svn: 296301
This commit is contained in:
Craig Topper 2017-02-26 21:15:18 +00:00
parent 5fc36545f5
commit 3de998317b

View File

@ -147,7 +147,7 @@ class LLVM_NODISCARD APInt {
return *this;
// Mask out the high bits.
uint64_t mask = ~uint64_t(0ULL) >> (APINT_BITS_PER_WORD - wordBits);
uint64_t mask = UINT64_MAX >> (APINT_BITS_PER_WORD - wordBits);
if (isSingleWord())
VAL &= mask;
else