From 6656afb31a517944accc52a364fb5d1b98bffb4f Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 25 Jun 2012 05:20:13 +0000 Subject: [PATCH] Just remove generic support for C++11 alignas -- GCC is already 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Support/AlignOf.h b/include/llvm/Support/AlignOf.h index 447b1a2e9f7..85607c84482 100644 --- a/include/llvm/Support/AlignOf.h +++ b/include/llvm/Support/AlignOf.h @@ -72,7 +72,7 @@ template 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 { \ typedef char alignas(x) type; \