use UnmanagedCallersOnly for delegates

This commit is contained in:
Emmanuel Hansen
2024-09-16 13:07:31 +00:00
committed by Evan Husted
parent 3e5b2bda38
commit c8d598d5ac
14 changed files with 652 additions and 670 deletions

View File

@ -97,7 +97,7 @@ namespace ARMeilleure.Translation
public virtual Operand Call(MethodInfo info, params Operand[] callArgs)
{
nint funcPtr = Delegates.GetDelegateFuncPtr(info);
nint funcPtr = info.MethodHandle.GetFunctionPointer();
OperandType returnType = GetOperandType(info.ReturnType);