Skip to content

Commit a3e58b4

Browse files
timholywaTeim
authored andcommitted
Add GC root for func in jl_instantiate_staged
Fixes JuliaLang#9099
1 parent fff0c59 commit a3e58b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ DLLEXPORT jl_function_t *jl_instantiate_staged(jl_methlist_t *m, jl_tuple_t *tt,
949949
jl_expr_t *ex = NULL;
950950
jl_expr_t *oldast = NULL;
951951
jl_function_t *func = NULL;
952-
JL_GC_PUSH2(&ex, &oldast);
952+
JL_GC_PUSH3(&ex, &oldast, &func);
953953
if (jl_is_expr(m->func->linfo->ast))
954954
oldast = (jl_expr_t*)m->func->linfo->ast;
955955
else

0 commit comments

Comments
 (0)