The TargetData is not used for the isPowerOfTwo determination. It has never
[oota-llvm.git] / include / llvm / Support / AlignOf.h
index 22c07d04fad8653adeb04e626c45ca564e581f23..d6b0ab8b3750f2a786ec53d7112de40b1b290963 100644 (file)
@@ -78,7 +78,7 @@ template <size_t Alignment> struct AlignedCharArrayImpl;
   template <> struct AlignedCharArrayImpl<x> { \
     char alignas(x) aligned; \
   }
-#elif defined(__GNUC__)
+#elif defined(__GNUC__) || defined(__IBM_ATTRIBUTES)
 #define LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(x) \
   template <> struct AlignedCharArrayImpl<x> { \
     char aligned __attribute__((aligned(x))); \