1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

revert an incorrect patch. This causes crashes all over the place on a

64-bit build.

llvm-svn: 70147
This commit is contained in:
Chris Lattner 2009-04-26 19:44:20 +00:00
parent 2233793a0f
commit 4685a9682f

View File

@ -42,18 +42,16 @@ class PointerIntPair {
intptr_t Value;
enum {
/// PointerBitMask - The bits that come from the pointer.
PointerBitMask =
~(unsigned)(((intptr_t)1 << PtrTraits::NumLowBitsAvailable)-1),
PointerBitMask = ~(((intptr_t)1 << PtrTraits::NumLowBitsAvailable)-1),
/// IntShift - The number of low bits that we reserve for other uses, and
/// keep zero.
IntShift = (unsigned)PtrTraits::NumLowBitsAvailable-IntBits,
IntShift = PtrTraits::NumLowBitsAvailable-IntBits,
/// IntMask - This is the unshifted mask for valid bits of the int type.
IntMask = (unsigned)(((intptr_t)1 << IntBits)-1),
IntMask = ((intptr_t)1 << IntBits)-1,
// ShiftedIntMask - This is the bits for the integer shifted in place.
ShiftedIntMask = (unsigned)(IntMask << IntShift)
ShiftedIntMask = IntMask << IntShift
};
public:
PointerIntPair() : Value(0) {}