Skip to content

Commit 0b5f137

Browse files
authored
[mono][aot] Fix an assert. (#86054)
Fixes #86052.
1 parent 1ca8a72 commit 0b5f137

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/mono/mono/mini/aot-compiler.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10106,6 +10106,9 @@ append_mangled_wrapper_subtype (GString *s, WrapperSubtype subtype)
1010610106
case WRAPPER_SUBTYPE_LLVM_FUNC:
1010710107
label = "llvm_func";
1010810108
break;
10109+
case WRAPPER_SUBTYPE_NATIVE_FUNC_INDIRECT:
10110+
label = "native_func_indirect";
10111+
break;
1010910112
default:
1011010113
g_assert_not_reached ();
1011110114
}
@@ -10269,6 +10272,9 @@ append_mangled_wrapper (GString *s, MonoMethod *method)
1026910272
append_sig = FALSE;
1027010273
} else if (info->subtype == WRAPPER_SUBTYPE_NATIVE_FUNC_AOT) {
1027110274
success = success && append_mangled_method (s, info->d.managed_to_native.method);
10275+
} else if (info->subtype == WRAPPER_SUBTYPE_NATIVE_FUNC_INDIRECT) {
10276+
append_mangled_signature (s, info->d.native_func.sig);
10277+
append_sig = FALSE;
1027210278
} else {
1027310279
g_assert (info->subtype == WRAPPER_SUBTYPE_NONE || info->subtype == WRAPPER_SUBTYPE_PINVOKE);
1027410280
success = success && append_mangled_method (s, info->d.managed_to_native.method);

0 commit comments

Comments
 (0)