Skip to content

Commit 16c9804

Browse files
committed
AArch64: Fix hardcoding calling convention of sincos_stret
1 parent 299a55a commit 16c9804

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
@@ -5106,9 +5106,10 @@ SDValue AArch64TargetLowering::LowerFSINCOS(SDValue Op,
51065106

51075107
StructType *RetTy = StructType::get(ArgTy, ArgTy);
51085108
TargetLowering::CallLoweringInfo CLI(DAG);
5109+
CallingConv::ID CC = getLibcallCallingConv(LC);
51095110
CLI.setDebugLoc(dl)
51105111
.setChain(DAG.getEntryNode())
5111-
.setLibCallee(CallingConv::Fast, RetTy, Callee, std::move(Args));
5112+
.setLibCallee(CC, RetTy, Callee, std::move(Args));
51125113

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

0 commit comments

Comments
 (0)