OSDN Git Service

Drop the default assumption about alignment down to 2 bits from 3. This apparently
authorChris Lattner <sabre@nondot.org>
Fri, 1 May 2009 23:48:33 +0000 (23:48 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 1 May 2009 23:48:33 +0000 (23:48 +0000)
helps some problems on win32 platforms (PR4119)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70603 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/PointerLikeTypeTraits.h

index c5f79cc..b0edd3b 100644 (file)
@@ -44,7 +44,7 @@ public:
   ///
   /// 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 @@ public:
   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.