Skip to content

Commit

Permalink
Merge pull request #20917 from JuliaLang/kf/nextgcroot
Browse files Browse the repository at this point in the history
Fix missing GC root
  • Loading branch information
vtjnash authored Mar 7, 2017
2 parents 97670ef + df62c99 commit 8dc7064
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -766,11 +766,17 @@ JL_DLLEXPORT int jl_is_cacheable_sig(
if (jl_is_vararg_type(declt))
declt = jl_unwrap_vararg(declt);
jl_value_t *di = jl_type_intersection(declt, (jl_value_t*)jl_typetype_type);
JL_GC_PUSH1(&di);
assert(di != (jl_value_t*)jl_bottom_type);
if (jl_is_kind(di))
if (jl_is_kind(di)) {
JL_GC_POP();
return 0;
else if (!jl_subtype(di, elt) || !jl_subtype(elt, di))
}
else if (!jl_subtype(di, elt) || !jl_subtype(elt, di)) {
JL_GC_POP();
return 0;
}
JL_GC_POP();
}
else {
return 0;
Expand Down

0 comments on commit 8dc7064

Please sign in to comment.