[clang] Always emit complete debug info for types which appear as a member of a standard-layout union. (PR #221615)

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 14 15:55:15 PDT 2026


================
@@ -64,6 +64,9 @@ FIELD(Abstract, 1, NO_MERGE)
 /// language rules (including DRs).
 FIELD(IsStandardLayout, 1, NO_MERGE)
 
+/// True when this class appears as a member of some standard-layout union.
+FIELD(IsStandardLayoutUnionMember, 1, MERGE_OR)
+
----------------
dwblaikie wrote:

Wouldn't mind an opinion from a Clang Maintainer on this - maybe there's some generalization of this property, or way to compute it cheaply enough, etc? (@AaronBallman or others?)

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


More information about the cfe-commits mailing list