Fix build error in gcc 3.4 and make more this general

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30839 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Lenharth 2006-10-09 19:05:44 +00:00
parent 3f0e5e2057
commit f2bdcb3187

View 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;