Skip to content

Commit

Permalink
IsValueTypeLike
Browse files Browse the repository at this point in the history
  • Loading branch information
ds5678 committed Sep 14, 2024
1 parent bc0ca96 commit 7c9a7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Il2CppInterop.Generator/Utils/UnstripGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static void GenerateInvokerMethodBody(MethodDefinition newMethod, FieldDe
}

body.Add(OpCodes.Call, delegateType.Methods.Single(it => it.Name == "Invoke"));
if (!newMethod.Signature!.ReturnType.IsValueType)
if (!newMethod.Signature!.ReturnType.IsValueTypeLike())
{
var pointerVar = new CilLocalVariable(imports.Module.IntPtr());
newMethod.CilMethodBody.LocalVariables.Add(pointerVar);
Expand Down

0 comments on commit 7c9a7cb

Please sign in to comment.