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 | 5bf1a6e98636a113adf6b8078b3e4d6f1181b406 (patch) | |
tree | 567995dd8ce0ef05d6efe7f2112fc01eade19056 /llvm | |
parent | febab5d9282ed5e786ffd2e2d904c82582299019 (diff) | |
download | bcm5719-llvm-5bf1a6e98636a113adf6b8078b3e4d6f1181b406.tar.gz bcm5719-llvm-5bf1a6e98636a113adf6b8078b3e4d6f1181b406.zip |
I cast, therefore I think I know what I'm doing.
llvm-svn: 70151
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/ADT/PointerIntPair.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/ADT/PointerIntPair.h b/llvm/include/llvm/ADT/PointerIntPair.h index 31ee2c8e26c..0aa478b1ff6 100644 --- a/llvm/include/llvm/ADT/PointerIntPair.h +++ b/llvm/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) {} |