Skip to content

Commit

Permalink
Fix X64CallingConventionResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
ds5678 authored and gompoc committed Oct 24, 2024
1 parent b21a8d5 commit 11c3cce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Cpp2IL.Core/Utils/X64CallingConventionResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ public static class X64CallingConventionResolver

const int ptrSize = 8;

private static bool IsXMM(ParameterAnalysisContext par) => par.ParameterType.Type is Il2CppTypeEnum.IL2CPP_TYPE_R4 or Il2CppTypeEnum.IL2CPP_TYPE_R8;
private static bool IsXMM(ParameterAnalysisContext par)
{
var parameterType = par.ParameterTypeContext;
return parameterType == parameterType.AppContext.SystemTypes.SystemSingleType
|| parameterType == parameterType.AppContext.SystemTypes.SystemDoubleType;
}

public static InstructionSetIndependentOperand[] ResolveForUnmanaged(ApplicationAnalysisContext app, ulong target)
{
Expand Down

0 comments on commit 11c3cce

Please sign in to comment.