mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-13 15:37:24 +00:00
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
This commit is contained in:
parent
9341c808ae
commit
610cb31ac9
@ -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) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user