1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00

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

llvm-svn: 296322
This commit is contained in:
Craig Topper 2017-02-27 06:05:33 +00:00
parent 8f6c9e9564
commit 67aa87241c

View File

@ -341,7 +341,7 @@ public:
/// This checks to see if the value has all bits of the APInt are set or not.
bool isAllOnesValue() const {
if (isSingleWord())
return VAL == ~integerPart(0) >> (APINT_BITS_PER_WORD - BitWidth);
return VAL == UINT64_MAX >> (APINT_BITS_PER_WORD - BitWidth);
return countPopulationSlowCase() == BitWidth;
}