[llvm-commits] [llvm] r70603 - /llvm/trunk/include/llvm/Support/PointerLikeTypeTraits.h
Chris Lattner
sabre at nondot.org
Fri May 1 16:48:34 PDT 2009
Author: lattner
Date: Fri May 1 18:48:33 2009
New Revision: 70603
URL: http://llvm.org/viewvc/llvm-project?rev=70603&view=rev
Log:
Drop the default assumption about alignment down to 2 bits from 3. This apparently
helps some problems on win32 platforms (PR4119)
Modified:
llvm/trunk/include/llvm/Support/PointerLikeTypeTraits.h
Modified: llvm/trunk/include/llvm/Support/PointerLikeTypeTraits.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/PointerLikeTypeTraits.h?rev=70603&r1=70602&r2=70603&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/PointerLikeTypeTraits.h (original)
+++ llvm/trunk/include/llvm/Support/PointerLikeTypeTraits.h Fri May 1 18:48:33 2009
@@ -44,7 +44,7 @@
///
/// All clients should use assertions to do a run-time check to ensure that
/// this is actually true.
- enum { NumLowBitsAvailable = 3 };
+ enum { NumLowBitsAvailable = 2 };
};
// Provide PointerLikeTypeTraits for const pointers.
@@ -55,7 +55,7 @@
static inline const T *getFromVoidPointer(const void *P) {
return static_cast<const T*>(P);
}
- enum { NumLowBitsAvailable = 3 };
+ enum { NumLowBitsAvailable = 2 };
};
// Provide PointerLikeTypeTraits for uintptr_t.
More information about the llvm-commits
mailing list