mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 11:33:24 +02:00
[APInt] Use UINT64_MAX instead of ~uint64_t(0ULL). NFC
llvm-svn: 296301
This commit is contained in:
parent
5fc36545f5
commit
3de998317b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user