Skip to content

Commit 1515913

Browse files
vtjnashKristofferC
authored andcommitted
fix static show in some edge cases (#58128)
Fix #51870 In a different PR, I was making precompile printing slightly more accurate, and it caused nearly everything to run into this bug and crashed the build, so I needed to fix this now since an upcoming PR will rely heavily on this being corrected. (cherry picked from commit 1faa698)
1 parent bba8a82 commit 1515913

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rtutils.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,7 @@ static int is_globname_binding(jl_value_t *v, jl_datatype_t *dv) JL_NOTSAFEPOINT
675675
if (globname && dv->name->module) {
676676
jl_binding_t *b = jl_get_module_binding(dv->name->module, globname, 0);
677677
jl_value_t *bv = jl_get_binding_value_if_latest_resolved_and_const_debug_only(b);
678-
// The `||` makes this function work for both function instances and function types.
679-
if (bv && (bv == v || jl_typeof(bv) == v))
678+
if (bv && ((jl_value_t*)dv == v ? jl_typeof(bv) == v : bv == v))
680679
return 1;
681680
}
682681
return 0;

0 commit comments

Comments
 (0)