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:
parent
f870c551f0
commit
b4bfe29415
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in New Issue