[clang] [CIR] Classify empty records as Ignore in x86_64 callconv (PR #211078)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 21 14:55:02 PDT 2026


================
@@ -0,0 +1,50 @@
+// RUN: cir-opt %s -cir-call-conv-lowering=target=x86_64 | FileCheck %s
+
+!s32i = !cir.int<s, 32>
+!rec_E0 = !cir.struct<"E0" {}>
----------------
adams381 wrote:

This PR is only the zero-field C `struct {}` shape. The C++ empty class isn't a zero-field record: CIRGen lays it out as a single padded byte, so it hits the `getPadded()` reject just above and still reports NYI. Nothing classifies it elsewhere yet. That PR is coming soon.

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


More information about the cfe-commits mailing list