Just remove generic support for C++11 alignas -- GCC is already
authorChandler Carruth <chandlerc@gmail.com>
Mon, 25 Jun 2012 05:20:13 +0000 (05:20 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 25 Jun 2012 05:20:13 +0000 (05:20 +0000)
advertising complete support w/o alignas implemented, and its
implementation of alignas in the latest versions is so convoluted as to
be unusable.

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

include/llvm/Support/AlignOf.h

index 447b1a2e9f7442437b165a784c8f84c3b551bec9..85607c84482c200a81579377864dbee3d57d9e9b 100644 (file)
@@ -72,7 +72,7 @@ template <size_t Alignment> struct AlignedCharArrayImpl {};
 template <> struct AlignedCharArrayImpl<0> {
   typedef char type;
 };
-#if __cplusplus == 201103L || __has_feature(cxx_alignas)
+#if __has_feature(cxx_alignas)
 #define LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(x) \
   template <> struct AlignedCharArrayImpl<x> { \
     typedef char alignas(x) type; \