diff --git a/src/dump.c b/src/dump.c index d2234a88ccc65..73e94b55e2637 100644 --- a/src/dump.c +++ b/src/dump.c @@ -1883,8 +1883,7 @@ static jl_value_t *jl_deserialize_typemap_entry(jl_serializer_state *s) jl_deserialize_struct(s, v, 1); #ifndef NDEBUG if (te->func.value && jl_typeis(te->func.value, jl_method_instance_type)) { - assert(((te->func.linfo->max_world == 0 && - te->func.linfo->min_world == 1) || + assert(((te->max_world == 0 && te->min_world == 1) || (te->func.linfo->max_world >= te->max_world && te->func.linfo->min_world <= te->min_world)) && "corrupt typemap entry structure");