diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-04-26 18:10:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-04-26 18:10:20 +0000 |
commit | 610cb31ac9853540416a87125ff94783de4a4231 (patch) | |
tree | 4349b00100327c1eab34e3527bfd3c4ec25db0f3 /include/llvm/ADT | |
parent | 9341c808ae684aeddcb4a926be3e3af62be22518 (diff) | |
download | external_llvm-610cb31ac9853540416a87125ff94783de4a4231.zip external_llvm-610cb31ac9853540416a87125ff94783de4a4231.tar.gz external_llvm-610cb31ac9853540416a87125ff94783de4a4231.tar.bz2 |
Suppress warnings about conversion shortening 64-bit to 32-bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/PointerIntPair.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/ADT/PointerIntPair.h b/include/llvm/ADT/PointerIntPair.h index 43a083d..e987b10 100644 --- a/include/llvm/ADT/PointerIntPair.h +++ b/include/llvm/ADT/PointerIntPair.h @@ -42,16 +42,18 @@ class PointerIntPair { intptr_t Value; enum { /// PointerBitMask - The bits that come from the pointer. - PointerBitMask = ~(((intptr_t)1 << PtrTraits::NumLowBitsAvailable)-1), + PointerBitMask = + ~(unsigned)(((intptr_t)1 << PtrTraits::NumLowBitsAvailable)-1), + /// IntShift - The number of low bits that we reserve for other uses, and /// keep zero. - IntShift = PtrTraits::NumLowBitsAvailable-IntBits, + IntShift = (unsigned)PtrTraits::NumLowBitsAvailable-IntBits, /// IntMask - This is the unshifted mask for valid bits of the int type. - IntMask = ((intptr_t)1 << IntBits)-1, + IntMask = (unsigned)(((intptr_t)1 << IntBits)-1), // ShiftedIntMask - This is the bits for the integer shifted in place. - ShiftedIntMask = IntMask << IntShift + ShiftedIntMask = (unsigned)(IntMask << IntShift) }; public: PointerIntPair() : Value(0) {} |