Skip to content

Commit

Permalink
Fixed Ourpalm#698
Browse files Browse the repository at this point in the history
  • Loading branch information
liiir1985 committed May 25, 2022
1 parent 71e1471 commit 6208d2b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2860,13 +2860,15 @@ public unsafe partial class ILIntepreter
dst = *(StackObject**)&objRef->Value;
var ft = domain.GetTypeByIndex(dst->Value) as ILType;
ilm = ft.GetVirtualMethod(ilm) as ILMethod;
useRegister = ilm.ShouldUseRegisterVM;
}
else
{
obj = mStack[objRef->Value];
if (obj == null)
throw new NullReferenceException();
ilm = ((ILTypeInstance)obj).Type.GetVirtualMethod(ilm) as ILMethod;
useRegister = ilm.ShouldUseRegisterVM;
}
}
if (useRegister)
Expand Down

0 comments on commit 6208d2b

Please sign in to comment.