diff options
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfiling.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler-rt/lib/profile/InstrProfiling.h b/compiler-rt/lib/profile/InstrProfiling.h index 72a6e671eba..d709282fccb 100644 --- a/compiler-rt/lib/profile/InstrProfiling.h +++ b/compiler-rt/lib/profile/InstrProfiling.h @@ -12,10 +12,8 @@ #ifdef _MSC_VER # define LLVM_ALIGNAS(x) __declspec(align(x)) -#elif __GNUC__ && !__has_feature(cxx_alignas) -# define LLVM_ALIGNAS(x) __attribute__((aligned(x)) -#else -# define LLVM_ALIGNAS(x) alignas(x) +#elif __GNUC__ +# define LLVM_ALIGNAS(x) __attribute__((aligned(x))) #endif #if defined(__FreeBSD__) && defined(__i386__) |

