[clang] [clang] Add clang::debug_info_type attribute for bitfields (PR #69104)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 18 12:25:15 PDT 2023


================
@@ -0,0 +1,14 @@
+// RUN: %clang -target x86_64-linux -g -S -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -verify -DMISMATCH %s
----------------
AaronBallman wrote:

I think we should split this into two test: one for testing what debug info is generated (here in CodeGen) and another one for testing diagnostic behavior in Sema. The CodeGen test should be clean of diagnostics.

Another test I think we should add would be testing qualifier mismatches (where the bit-field is `const`-qualified to make sure that doesn't show up as a mismatch.

https://github.com/llvm/llvm-project/pull/69104


More information about the cfe-commits mailing list