From f9be4a2c060d285526d18af358081c0118589ad8 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 26 Feb 2017 21:15:18 +0000 Subject: [PATCH] [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 --- include/llvm/ADT/APInt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0