From: Craig Topper Date: Mon, 27 Feb 2017 06:05:33 +0000 (+0000) Subject: [APInt] Use UINT64_MAX instead of ~integerPart(0). NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34270516e12b2f9e25ff63442d51b3720f2811e6;p=llvm [APInt] Use UINT64_MAX instead of ~integerPart(0). NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296322 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index d64a05165bd..2af3aabe188 100644 --- a/include/llvm/ADT/APInt.h +++ b/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; }