[clang] [X86] Fix CodeGen crash for arrays of empty structs and unions (PR #224203)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 17 18:19:40 PDT 2026


================
@@ -0,0 +1,29 @@
+// RUN: %clang_cc1 -triple=x86_64 -emit-llvm -o - %s | FileCheck %s
+
+struct StructArray {
+    long a;
+    float b;
+    struct {
+    } c[7];
+}
+
+struct UnionArray {
+    long a;
+    float b;
+    union {
+    } c[7];
+}
----------------
MaooJian wrote:

added it, thx

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


More information about the cfe-commits mailing list