Fix build error in gcc 3.4 and make more this general
authorAndrew Lenharth <andrewl@lenharth.org>
Mon, 9 Oct 2006 19:05:44 +0000 (19:05 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Mon, 9 Oct 2006 19:05:44 +0000 (19:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30839 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallVector.h

index d0e898d68bbeeac0c4e1151c7876639bfa4d0072..01d092c75d91e20601fbcdf8ce2026a175895e6c 100644 (file)
@@ -35,7 +35,7 @@ class SmallVectorImpl {
 protected:
 #ifdef __GNUC__
   typedef char U;
-  U FirstEl __attribute__((aligned(__alignof__(double))));
+  U FirstEl __attribute__((aligned));
 #else
   union U {
     double D;