[clang] Always emit complete debug info for types which appear as a member of a standard-layout union. (PR #221615)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 8 10:48:47 PDT 2026
================
@@ -3244,6 +3244,17 @@ static bool canUseCtorHoming(const CXXRecordDecl *RD) {
RD->hasConstexprNonCopyMoveConstructor())
return false;
+ // Skip this optimization if this type is standard-layout and is a member of
+ // some standard-layout union in this translation unit. Per the C++ spec, "it
----------------
efriedma-quic wrote:
Does this code execute at the end of the translation unit?
https://github.com/llvm/llvm-project/pull/221615
More information about the cfe-commits
mailing list