Skip to content

Commit

Permalink
gc: remove over-eager assertion
Browse files Browse the repository at this point in the history
Fixes #50451
  • Loading branch information
vtjnash committed Jul 13, 2023
1 parent dcca46b commit f4f1ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@ static int get_intersect_visitor(jl_typemap_entry_t *oldentry, struct typemap_in
struct matches_env *closure = container_of(closure0, struct matches_env, match);
assert(oldentry != closure->newentry && "entry already added");
assert(oldentry->min_world <= closure->newentry->min_world && "old method cannot be newer than new method");
assert(oldentry->max_world == ~(size_t)0 && "method cannot be added at the same time as method deleted");
assert(oldentry->max_world != closure->newentry->min_world && "method cannot be added at the same time as method deleted");
// don't need to consider other similar methods if this oldentry will always fully intersect with them and dominates all of them
typemap_slurp_search(oldentry, &closure->match);
jl_method_t *oldmethod = oldentry->func.method;
Expand Down

0 comments on commit f4f1ecf

Please sign in to comment.