Skip to content

Commit

Permalink
Add two asserts to mono_emit_jit_icall. (mono#14459)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaykrell authored and akoeplinger committed May 14, 2019
1 parent f34d562 commit 495a933
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mono/mini/calls.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,8 @@ mono_emit_jit_icall (MonoCompile *cfg, gconstpointer func, MonoInst **args)
MonoJitICallInfo *info = mono_find_jit_icall_by_addr (func);

g_assert (info);
g_assertf (info->name, "%d", (int)mono_jit_icall_info_index (info));
g_assertf (info->func, "%d", (int)mono_jit_icall_info_index (info));

return mono_emit_native_call (cfg, mono_icall_get_wrapper (info), info->sig, args);
}
Expand Down

0 comments on commit 495a933

Please sign in to comment.