From 67aa87241c0bf7cc5d397daecb47dfb636b576a7 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 27 Feb 2017 06:05:33 +0000 Subject: [PATCH] [APInt] Use UINT64_MAX instead of ~integerPart(0). NFC llvm-svn: 296322 --- 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 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; }