[cfe-commits] [libcxx] r157765 - /libcxx/trunk/include/__config
Howard Hinnant
hhinnant at apple.com
Thu May 31 13:14:00 PDT 2012
Author: hhinnant
Date: Thu May 31 15:14:00 2012
New Revision: 157765
URL: http://llvm.org/viewvc/llvm-project?rev=157765&view=rev
Log:
Fix the new _ALIGNAS_TYPE per instructions supplied by Eli Friedman.
Modified:
libcxx/trunk/include/__config
Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=157765&r1=157764&r2=157765&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Thu May 31 15:14:00 2012
@@ -148,7 +148,7 @@
# define _ALIGNAS_TYPE(x) alignas(x)
# define _ALIGNAS(x) alignas(x)
#else
-# define _ALIGNAS_TYPE(x) __attribute__((__aligned__))
+# define _ALIGNAS_TYPE(x) __attribute__((__aligned__(__alignof(x))))
# define _ALIGNAS(x) __attribute__((__aligned__(x)))
#endif
More information about the cfe-commits
mailing list