[clang] [clang][codegen] Fix ABI for HVA/HFA returns on x86_64 MSVC (PR #113104)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 20 22:40:15 PDT 2024
================
@@ -1110,6 +1110,10 @@ static bool isTrivialForMSVC(const CXXRecordDecl *RD, QualType Ty,
isa<VectorType>(Base)) {
return true;
}
+ if (CGM.getTarget().getTriple().isX86() &&
+ CGM.getABIInfo().isHomogeneousAggregate(Ty, Base, NumElts)) {
----------------
efriedma-quic wrote:
This looks like it might affect non-vectorcall calls; can you check (and add a testcase)?
Please also add test coverage for 32-bit x86.
https://github.com/llvm/llvm-project/pull/113104
More information about the cfe-commits
mailing list