Skip to content

Commit

Permalink
Revert changes to JudgeSpecificsByOriginalType
Browse files Browse the repository at this point in the history
  • Loading branch information
ds5678 committed Sep 14, 2024
1 parent b4d52e0 commit 397a9f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Il2CppInterop.Generator/Contexts/RewriteGlobalContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ public TypeRewriteContext GetNewTypeForOriginal(TypeDefinition originalType)

public TypeRewriteContext.TypeSpecifics JudgeSpecificsByOriginalType(TypeSignature typeRef)
{
if (typeRef.IsPrimitive() || typeRef.IsPointerLike() || typeRef.FullName == "System.TypedReference")
if (typeRef.IsPrimitive() || typeRef is PointerTypeSignature || typeRef.FullName == "System.TypedReference")
return TypeRewriteContext.TypeSpecifics.BlittableStruct;
if (typeRef
is CorLibTypeSignature { ElementType: ElementType.String or ElementType.Object }
or ArrayBaseTypeSignature
or ByReferenceTypeSignature
or GenericParameterSignature
or GenericInstanceTypeSignature)
return TypeRewriteContext.TypeSpecifics.ReferenceType;
Expand Down

0 comments on commit 397a9f9

Please sign in to comment.