[clang] [clang][PowerPC] Pass single-member unions in GPRs on ELFv1 (PR #223481)
Matt Turner via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 15 16:49:12 PDT 2026
================
@@ -134,11 +134,13 @@ bool isEmptyRecordForLayout(const ASTContext &Context, QualType T);
/// element struct", i.e. it has exactly one non-empty field or
/// exactly one field which is itself a single element
/// struct. Structures with flexible array members are never
-/// considered single element structs.
+/// considered single element structs. If \p AllowUnions is false, neither T
+/// nor any record it contains may be a union.
///
/// \return The field declaration for the single non-empty field, if
/// it exists.
-const Type *isSingleElementStruct(QualType T, ASTContext &Context);
+const Type *isSingleElementStruct(QualType T, ASTContext &Context,
----------------
mattst88 wrote:
All done, three commits now. I can split out the refactors into a separate PR if you want.
https://github.com/llvm/llvm-project/pull/223481
More information about the cfe-commits
mailing list