[PATCH] Non-POD unions with bit-fields causes an assertion failure at clang/lib/AST/RecordLayoutBuilder.cpp:754

Alexey Bataev a.bataev at hotmail.com
Wed Oct 15 01:59:33 PDT 2014


================
Comment at: test/Layout/union_regular_bit_field.cpp:1-4
@@ +1,5 @@
+// RUN: %clang_cc1 -emit-llvm-only -triple aarch64 -fdump-record-layouts %s 2>/dev/null \
+// RUN:            | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm-only -triple x86_64 -fdump-record-layouts %s 2>/dev/null \
+// RUN:            | FileCheck %s
+
----------------
majnemer wrote:
> These triples are not specific enough.  Make sure you specify the itanium ABI somehow.
You can use %itanium_abi_triple as a triple in tests

http://reviews.llvm.org/D5775






More information about the cfe-commits mailing list