Skip to content

Commit

Permalink
[mono][aot] Fix an assert. (#86054)
Browse files Browse the repository at this point in the history
Fixes #86052.
  • Loading branch information
vargaz authored May 10, 2023
1 parent 1ca8a72 commit 0b5f137
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mono/mono/mini/aot-compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -10106,6 +10106,9 @@ append_mangled_wrapper_subtype (GString *s, WrapperSubtype subtype)
case WRAPPER_SUBTYPE_LLVM_FUNC:
label = "llvm_func";
break;
case WRAPPER_SUBTYPE_NATIVE_FUNC_INDIRECT:
label = "native_func_indirect";
break;
default:
g_assert_not_reached ();
}
Expand Down Expand Up @@ -10269,6 +10272,9 @@ append_mangled_wrapper (GString *s, MonoMethod *method)
append_sig = FALSE;
} else if (info->subtype == WRAPPER_SUBTYPE_NATIVE_FUNC_AOT) {
success = success && append_mangled_method (s, info->d.managed_to_native.method);
} else if (info->subtype == WRAPPER_SUBTYPE_NATIVE_FUNC_INDIRECT) {
append_mangled_signature (s, info->d.native_func.sig);
append_sig = FALSE;
} else {
g_assert (info->subtype == WRAPPER_SUBTYPE_NONE || info->subtype == WRAPPER_SUBTYPE_PINVOKE);
success = success && append_mangled_method (s, info->d.managed_to_native.method);
Expand Down

0 comments on commit 0b5f137

Please sign in to comment.