Skip to content

Commit

Permalink
Merge pull request Unity-Technologies#19 from Unity-Technologies/mono…
Browse files Browse the repository at this point in the history
…-bisect

Mono bisect
  • Loading branch information
Tak committed Jan 17, 2012
2 parents 104cb05 + f9f1668 commit 824546e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/mini/aot-runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ mono_aot_get_method_from_vt_slot (MonoDomain *domain, MonoVTable *vtable, int sl
if (no_aot_trampoline)
return NULL;

if (mono_metadata_token_index (token) == 0)
if (mono_metadata_token_index (token) == 0 || mono_metadata_token_table (token) != MONO_TABLE_METHOD)
return NULL;

return mono_aot_get_method_from_token (domain, image, token);
Expand Down

0 comments on commit 824546e

Please sign in to comment.