AArch64/GlobalISel: Fix using wrong calling convention for calls

This was reusing the parent function calling convention instead of the
callee. I'm not sure if there's a case where there's an observable
difference.

I previously missed this in b72a23650f
This commit is contained in:
Matt Arsenault 2021-02-28 11:28:14 -05:00
parent f870c551f0
commit b4bfe29415
1 changed files with 1 additions and 1 deletions

View File

@ -994,7 +994,7 @@ bool AArch64CallLowering::lowerCall(MachineIRBuilder &MIRBuilder,
SmallVector<ArgInfo, 8> InArgs;
if (!Info.OrigRet.Ty->isVoidTy())
splitToValueTypes(Info.OrigRet, InArgs, DL, MRI, F.getCallingConv());
splitToValueTypes(Info.OrigRet, InArgs, DL, MRI, Info.CallConv);
// If we can lower as a tail call, do that instead.
bool CanTailCallOpt =