[mono][aot] Fix an assertion. (#52762)
authorZoltan Varga <vargaz@gmail.com>
Fri, 14 May 2021 20:19:57 +0000 (16:19 -0400)
committerGitHub <noreply@github.com>
Fri, 14 May 2021 20:19:57 +0000 (16:19 -0400)
Fixes https://github.com/dotnet/runtime/issues/52736.

src/mono/mono/metadata/marshal-ilgen.c

index 151e05a936dabe493391f8e9448d6f50f45533b9..9cfd06722633e4656a5dadd4a5cbdb37dc6a94ec 100644 (file)
@@ -1448,6 +1448,7 @@ mono_mb_emit_restore_result (MonoMethodBuilder *mb, MonoType *return_type)
                g_assert_not_reached ();
                break;
        case MONO_TYPE_PTR:
+       case MONO_TYPE_FNPTR:
        case MONO_TYPE_STRING:
        case MONO_TYPE_CLASS: 
        case MONO_TYPE_OBJECT: