Skip to content

Commit 11c3cce

Browse files
ds5678gompoc
authored andcommitted
Fix X64CallingConventionResolver
1 parent b21a8d5 commit 11c3cce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Cpp2IL.Core/Utils/X64CallingConventionResolver.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ public static class X64CallingConventionResolver
2020

2121
const int ptrSize = 8;
2222

23-
private static bool IsXMM(ParameterAnalysisContext par) => par.ParameterType.Type is Il2CppTypeEnum.IL2CPP_TYPE_R4 or Il2CppTypeEnum.IL2CPP_TYPE_R8;
23+
private static bool IsXMM(ParameterAnalysisContext par)
24+
{
25+
var parameterType = par.ParameterTypeContext;
26+
return parameterType == parameterType.AppContext.SystemTypes.SystemSingleType
27+
|| parameterType == parameterType.AppContext.SystemTypes.SystemDoubleType;
28+
}
2429

2530
public static InstructionSetIndependentOperand[] ResolveForUnmanaged(ApplicationAnalysisContext app, ulong target)
2631
{

0 commit comments

Comments
 (0)