diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-02-27 06:05:33 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-02-27 06:05:33 +0000 |
commit | 9ef28ba53cda36962fdc8020a734d79941c64d56 (patch) | |
tree | 88b287bec3fd09db1c5cb4bb44f09f56296dd270 | |
parent | ed0101a0b974b638e7f0f6ec4673e8d68fb5e60a (diff) | |
download | bcm5719-llvm-9ef28ba53cda36962fdc8020a734d79941c64d56.tar.gz bcm5719-llvm-9ef28ba53cda36962fdc8020a734d79941c64d56.zip |
[APInt] Use UINT64_MAX instead of ~integerPart(0). NFC
llvm-svn: 296322
-rw-r--r-- | llvm/include/llvm/ADT/APInt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h index d64a05165bd..2af3aabe188 100644 --- a/llvm/include/llvm/ADT/APInt.h +++ b/llvm/include/llvm/ADT/APInt.h @@ -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; } |