[clang] [clang] Return larger CXX records in memory (PR #120670)
Pranav Kant via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 3 17:04:22 PST 2025
================
@@ -1334,6 +1334,16 @@ class X86_64ABIInfo : public ABIInfo {
return T.isOSLinux() || T.isOSNetBSD();
}
+ bool returnCXXRecordGreaterThan128InMem() const {
+ // Clang <= 20.0 did not do this.
+ if (getContext().getLangOpts().getClangABICompat() <=
+ LangOptions::ClangABI::Ver20)
+ return false;
+
+ const llvm::Triple &T = getTarget().getTriple();
+ return T.isOSLinux() || T.isOSNetBSD();
----------------
pranavk wrote:
Done.
https://github.com/llvm/llvm-project/pull/120670
More information about the cfe-commits
mailing list