aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
diff options
context:
space:
mode:
authoryingopq <115543042+yingopq@users.noreply.github.com>2025-01-20 16:47:40 +0800
committerGitHub <noreply@github.com>2025-01-20 16:47:40 +0800
commit754ed95b6672b9a678a994cc652862a91cdc4406 (patch)
tree2a150fae953cd4d1b2016888fdb4569f0b7676e9 /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
parent333562e7ec0393ba0110100ac7bea9bcf7150d03 (diff)
downloadllvm-754ed95b6672b9a678a994cc652862a91cdc4406.zip
llvm-754ed95b6672b9a678a994cc652862a91cdc4406.tar.gz
llvm-754ed95b6672b9a678a994cc652862a91cdc4406.tar.bz2
[Mips] Fix compiler crash when returning fp128 after calling a functi… (#117525)
…on returning { i8, i128 } Fixes https://github.com/llvm/llvm-project/issues/96432.
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
index 1de3364..3e89b18 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
@@ -99,7 +99,7 @@ void FunctionLoweringInfo::set(const Function &fn, MachineFunction &mf,
GetReturnInfo(CC, Fn->getReturnType(), Fn->getAttributes(), Outs, *TLI,
mf.getDataLayout());
CanLowerReturn =
- TLI->CanLowerReturn(CC, *MF, Fn->isVarArg(), Outs, Fn->getContext());
+ TLI->CanLowerReturn(CC, *MF, Fn->isVarArg(), Outs, Fn->getContext(), Fn->getReturnType());
// If this personality uses funclets, we need to do a bit more work.
DenseMap<const AllocaInst *, TinyPtrVector<int *>> CatchObjects;