================
@@ -0,0 +1,10 @@
+// RUN: cir-opt %s --cir-to-llvm | FileCheck %s
+
+!u_empty = !cir.record<union {}>
----------------
andykaylor wrote:
Let me amend what I said above. I didn't realize the classic codegen I was
referring to was using the Windows C ABI. Classic codegen does generate
`%union.U = type {}` for C and `%union.U = type { i8 }` for C++ (which the
incubator also does).
So, I guess my question is whether we identify these padded forms as "empty".
https://github.com/llvm/llvm-project/pull/172666
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits