Skip to content

Commit

Permalink
don't include subtype
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Jul 21, 2022
1 parent 4303f43 commit 9274f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -2324,7 +2324,7 @@ static void jl_insert_method_instances(jl_array_t *list) JL_GC_DISABLED
// Is this still the method we'd be calling?
jl_methtable_t *mt = jl_method_table_for(mi->specTypes);
struct jl_typemap_assoc search = {(jl_value_t*)mi->specTypes, world, NULL, 0, ~(size_t)0};
jl_typemap_entry_t *entry = jl_typemap_assoc_by_type(mt->defs, &search, /*offs*/0, /*subtype*/1);
jl_typemap_entry_t *entry = jl_typemap_assoc_by_type(mt->defs, &search, /*offs*/0, /*subtype*/0);
if (entry) {
jl_value_t *mworld = entry->func.value;
if (jl_is_method(mworld) && mi->def.method != (jl_method_t*)mworld && jl_type_morespecific(((jl_method_t*)mworld)->sig, mi->def.method->sig)) {
Expand All @@ -2338,7 +2338,7 @@ static void jl_insert_method_instances(jl_array_t *list) JL_GC_DISABLED
j = get_next_backedge(mi->backedges, j, &invokeTypes, &caller);
if (invokeTypes) {
struct jl_typemap_assoc search = {invokeTypes, world, NULL, 0, ~(size_t)0};
entry = jl_typemap_assoc_by_type(mt->defs, &search, /*offs*/0, /*subtype*/1);
entry = jl_typemap_assoc_by_type(mt->defs, &search, /*offs*/0, /*subtype*/0);
if (entry) {
jl_value_t *imworld = entry->func.value;
if (jl_is_method(imworld) && mi->def.method == (jl_method_t*)imworld) {
Expand Down

0 comments on commit 9274f87

Please sign in to comment.