summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-02-27 06:05:33 +0000
committerCraig Topper <craig.topper@gmail.com>2017-02-27 06:05:33 +0000
commit9ef28ba53cda36962fdc8020a734d79941c64d56 (patch)
tree88b287bec3fd09db1c5cb4bb44f09f56296dd270
parented0101a0b974b638e7f0f6ec4673e8d68fb5e60a (diff)
downloadbcm5719-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.h2
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;
}
OpenPOWER on IntegriCloud