Skip to content

Commit 0b12d0e

Browse files
arsenmJaddyen
authored andcommitted
AArch64: Fix hardcoding calling convention of sincos_stret (NFC) (llvm#144336)
1 parent 05fd4c5 commit 0b12d0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5061,9 +5061,10 @@ SDValue AArch64TargetLowering::LowerFSINCOS(SDValue Op,
50615061

50625062
StructType *RetTy = StructType::get(ArgTy, ArgTy);
50635063
TargetLowering::CallLoweringInfo CLI(DAG);
5064+
CallingConv::ID CC = getLibcallCallingConv(LC);
50645065
CLI.setDebugLoc(dl)
50655066
.setChain(DAG.getEntryNode())
5066-
.setLibCallee(CallingConv::Fast, RetTy, Callee, std::move(Args));
5067+
.setLibCallee(CC, RetTy, Callee, std::move(Args));
50675068

50685069
std::pair<SDValue, SDValue> CallResult = LowerCallTo(CLI);
50695070
return CallResult.first;

0 commit comments

Comments
 (0)