Skip to content

Commit aa3344b

Browse files
committed
DAG: Use the LibcallImpl to get calling conv in ExpandDivRemLibCall
1 parent bea172c commit aa3344b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,7 @@ SelectionDAGLegalize::ExpandDivRemLibCall(SDNode *Node,
23992399
TargetLowering::CallLoweringInfo CLI(DAG);
24002400
CLI.setDebugLoc(dl)
24012401
.setChain(InChain)
2402-
.setLibCallee(TLI.getLibcallCallingConv(LC), RetTy, Callee,
2402+
.setLibCallee(TLI.getLibcallImplCallingConv(LibcallImpl), RetTy, Callee,
24032403
std::move(Args))
24042404
.setSExtResult(isSigned)
24052405
.setZExtResult(!isSigned);

0 commit comments

Comments
 (0)