[llvm-commits] [PATCH] [Support][Endian] Add support for specifying the alignment and native unaligned types.

Richard Smith richard at metafoo.co.uk
Tue Dec 11 14:52:36 PST 2012



================
Comment at: include/llvm/Support/Endian.h:57-58
@@ +56,4 @@
+struct AlignmentHelper {
+  uint8_t alignas(detail::align<value_type, alignment>::value)
+    Storage[sizeof(value_type)];
+};
----------------
alignas is in the wrong place here. It goes either at the start, or immediately after 'Storage'.


http://llvm-reviews.chandlerc.com/D200



More information about the llvm-commits mailing list