From 52d053238aabff0ed7ed0213cb192ce6adf7a190 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 31 Oct 2012 00:54:26 +0000 Subject: [PATCH] xlc supports __attribute__((aligned(x))), use it. Patch by Kai. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167087 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 22c07d04fad..d6b0ab8b375 100644 --- a/include/llvm/Support/AlignOf.h +++ b/include/llvm/Support/AlignOf.h @@ -78,7 +78,7 @@ template struct AlignedCharArrayImpl; template <> struct AlignedCharArrayImpl { \ char alignas(x) aligned; \ } -#elif defined(__GNUC__) +#elif defined(__GNUC__) || defined(__IBM_ATTRIBUTES) #define LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(x) \ template <> struct AlignedCharArrayImpl { \ char aligned __attribute__((aligned(x))); \ -- 2.34.1