[clang] [clang][CodeGen] Fix MSVC ABI for classes with non static data members of reference type (PR #90547)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 30 12:09:56 PDT 2024
================
@@ -1144,11 +1167,13 @@ bool MicrosoftCXXABI::classifyReturnType(CGFunctionInfo &FI) const {
if (!RD)
return false;
- bool isTrivialForABI = RD->canPassInRegisters() &&
- isTrivialForMSVC(RD, FI.getReturnType(), CGM);
-
// MSVC always returns structs indirectly from C++ instance methods.
- bool isIndirectReturn = !isTrivialForABI || FI.isInstanceMethod();
+ bool isIndirectReturn = FI.isInstanceMethod();
----------------
efriedma-quic wrote:
I'd like to keep ABI changes as simple as possible; please separate.
https://github.com/llvm/llvm-project/pull/90547
More information about the cfe-commits
mailing list