[llvm] [Mips] Fix compiler crash when returning fp128 after calling a functi… (PR #117525)

via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 29 18:51:52 PST 2024


================
@@ -4781,7 +4781,7 @@ class TargetLowering : public TargetLoweringBase {
   virtual bool CanLowerReturn(CallingConv::ID /*CallConv*/,
                               MachineFunction &/*MF*/, bool /*isVarArg*/,
                const SmallVectorImpl<ISD::OutputArg> &/*Outs*/,
-               LLVMContext &/*Context*/) const
+               LLVMContext &/*Context*/, const Type *RetTy) const
----------------
yingopq wrote:

We can know each element value type in `Outs`, but we can not get the call return type from `Outs`. So I think it is necessary to add a new parameter.

https://github.com/llvm/llvm-project/pull/117525


More information about the llvm-commits mailing list