Index: include/llvm/ADT/DenseMapInfo.h =================================================================== --- include/llvm/ADT/DenseMapInfo.h +++ include/llvm/ADT/DenseMapInfo.h @@ -31,13 +31,11 @@ template struct DenseMapInfo { static inline T* getEmptyKey() { - uintptr_t Val = static_cast(-1); - Val <<= PointerLikeTypeTraits::NumLowBitsAvailable; + uintptr_t Val = static_cast(-1) - 0x3fff; return reinterpret_cast(Val); } static inline T* getTombstoneKey() { - uintptr_t Val = static_cast(-2); - Val <<= PointerLikeTypeTraits::NumLowBitsAvailable; + uintptr_t Val = static_cast(-1) - 0x7fff; return reinterpret_cast(Val); } static unsigned getHashValue(const T *PtrVal) {