================ @@ -105,6 +105,11 @@ void AMDGPUABIInfo::computeInfo(CGFunctionInfo &FI) const { if (!getCXXABI().classifyReturnType(FI)) FI.getReturnInfo() = classifyReturnType(FI.getReturnType()); + // srets / indirect returns are unconditionally in the alloca AS. + if (FI.getReturnInfo().isIndirect()) + FI.getReturnInfo().setIndirectAddrSpace( + getDataLayout().getAllocaAddrSpace()); ---------------- AlexVlx wrote:
@rjmccall are you OK with the current solution (@arsenm appears to be)? https://github.com/llvm/llvm-project/pull/114062 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits