We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6885950 commit bd7c2f1Copy full SHA for bd7c2f1
llvm/include/llvm/ADT/PointerIntPair.h
@@ -173,8 +173,7 @@ struct PointerIntPairInfo {
173
"PointerIntPair with integer size too large for pointer");
174
enum MaskAndShiftConstants : uintptr_t {
175
/// PointerBitMask - The bits that come from the pointer.
176
- PointerBitMask =
177
- ~(uintptr_t)(((intptr_t)1 << PtrTraits::NumLowBitsAvailable) - 1),
+ PointerBitMask = (~(uintptr_t)0) << PtrTraits::NumLowBitsAvailable,
178
179
/// IntShift - The number of low bits that we reserve for other uses, and
180
/// keep zero.
0 commit comments