commit | 5d25d03844798b2d430fbc75a5c938aad98fdd40 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@gmail.com> | Sun Feb 26 21:15:18 2017 +0000 |
committer | Craig Topper <craig.topper@gmail.com> | Sun Feb 26 21:15:18 2017 +0000 |
tree | a2c12fd194d54c2dfebad3b76dd849d149740a02 | |
parent | 7d7b6d767dd9962fb6b1779dfc237a617a4a794b [diff] |
[APInt] Use UINT64_MAX instead of ~uint64_t(0ULL). NFC llvm-svn: 296301
diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h index ccbff7a..d64a051 100644 --- a/llvm/include/llvm/ADT/APInt.h +++ b/llvm/include/llvm/ADT/APInt.h
@@ -147,7 +147,7 @@ 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