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.
2 parents 608f317 + bd7c2f1 commit 9ef78bfCopy full SHA for 9ef78bf
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