diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-04-26 20:12:38 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-04-26 20:12:38 +0000 |
commit | 910c6d5dc4a16917741a746ee184c417540a4a77 (patch) | |
tree | 237993092ae493371d691525d51ac8973deab2b4 /include/llvm/ADT | |
parent | 77f85eeb6dc46bb25c66d231055f9b302d1088ee (diff) | |
download | external_llvm-910c6d5dc4a16917741a746ee184c417540a4a77.zip external_llvm-910c6d5dc4a16917741a746ee184c417540a4a77.tar.gz external_llvm-910c6d5dc4a16917741a746ee184c417540a4a77.tar.bz2 |
I cast, therefore I think I know what I'm doing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70151 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/PointerIntPair.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/ADT/PointerIntPair.h b/include/llvm/ADT/PointerIntPair.h index 31ee2c8..0aa478b 100644 --- a/include/llvm/ADT/PointerIntPair.h +++ b/include/llvm/ADT/PointerIntPair.h @@ -43,17 +43,17 @@ class PointerIntPair { enum { /// PointerBitMask - The bits that come from the pointer. PointerBitMask = - ~(uint64_t)(((intptr_t)1 << PtrTraits::NumLowBitsAvailable)-1), + ~(uintptr_t)(((intptr_t)1 << PtrTraits::NumLowBitsAvailable)-1), /// IntShift - The number of low bits that we reserve for other uses, and /// keep zero. - IntShift = (uint64_t)PtrTraits::NumLowBitsAvailable-IntBits, + IntShift = (uintptr_t)PtrTraits::NumLowBitsAvailable-IntBits, /// IntMask - This is the unshifted mask for valid bits of the int type. - IntMask = (uint64_t)(((intptr_t)1 << IntBits)-1), + IntMask = (uintptr_t)(((intptr_t)1 << IntBits)-1), // ShiftedIntMask - This is the bits for the integer shifted in place. - ShiftedIntMask = (uint64_t)(IntMask << IntShift) + ShiftedIntMask = (uintptr_t)(IntMask << IntShift) }; public: PointerIntPair() : Value(0) {} |