1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

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 b72a23650f573299aec30846fb844c3558921fb8
This commit is contained in:
Matt Arsenault 2021-02-28 11:28:14 -05:00
parent c44f10ad3d
commit f75441bd01

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 =