From: Craig Topper <craig.topper@gmail.com>
Date: Sun, 26 Feb 2017 21:15:18 +0000 (+0000)
Subject: [APInt] Use UINT64_MAX instead of ~uint64_t(0ULL). NFC
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9be4a2c060d285526d18af358081c0118589ad8;p=llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296301 91177308-0d34-0410-b5e6-96231b3b80d8
---

diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h
index ccbff7a5daf..d64a05165bd 100644
--- a/include/llvm/ADT/APInt.h
+++ b/include/llvm/ADT/APInt.h
@@ -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