Skip to content

Commit

Permalink
Add GC root for func in jl_instantiate_staged
Browse files Browse the repository at this point in the history
Fixes #9099
  • Loading branch information
timholy committed Nov 22, 2014
1 parent 6061806 commit 6fcbf1b
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 @@ -949,7 +949,7 @@ DLLEXPORT jl_function_t *jl_instantiate_staged(jl_methlist_t *m, jl_tuple_t *tt,
jl_expr_t *ex = NULL;
jl_expr_t *oldast = NULL;
jl_function_t *func = NULL;
JL_GC_PUSH2(&ex, &oldast);
JL_GC_PUSH3(&ex, &oldast, &func);
if (jl_is_expr(m->func->linfo->ast))
oldast = (jl_expr_t*)m->func->linfo->ast;
else
Expand Down

0 comments on commit 6fcbf1b

Please sign in to comment.