[clang] [clang][Sparc] Pass packed structs and unions in integer registers on SPARC64 (PR #246226)
Brad Smith via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 28 21:03:59 PST 2026
================
@@ -419,6 +502,10 @@ ABIArgInfo SparcV9ABIInfo::classifyType(QualType Ty, unsigned SizeLimit,
}
CoerceBuilder CB(VMContext, getDataLayout(), IsVarArg);
+ if (IsPackedUnionGnuABI)
+ if (const auto *RD = Ty->getAsRecordDecl())
----------------
brad0 wrote:
Thanks. Fixed both places and added the two cases to the test.
https://github.com/llvm/llvm-project/pull/246226
More information about the cfe-commits
mailing list