AArch64: Use getLibcallImplCallingConv more consistently (#176377)
This was querying the calling conv from the Libcall instead of
the LibcallImpl.
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 7a2650b..329aae3 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -8993,7 +8993,8 @@
auto *RetTy = EVT(MVT::i64).getTypeForEVT(*DAG.getContext());
TargetLowering::CallLoweringInfo CLI(DAG);
CLI.setDebugLoc(DL).setChain(Chain).setLibCallee(
- DAG.getLibcalls().getLibcallCallingConv(LC), RetTy, Callee, {});
+ DAG.getLibcalls().getLibcallImplCallingConv(LCImpl), RetTy, Callee,
+ {});
std::tie(Size, Chain) = LowerCallTo(CLI);
}
if (Size) {