Skip to content

Commit

Permalink
Remove incorrect JL_GC_POP
Browse files Browse the repository at this point in the history
jl_method_error roots all margs other than margs[0], so margs[0] could have been GCed.
Fix that by removing the JL_GC_POP
  • Loading branch information
Keno committed Feb 28, 2017
1 parent d3de8cc commit 01b0881
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ value_t fl_invoke_julia_macro(fl_context_t *fl_ctx, value_t *args, uint32_t narg
margs[0] = jl_toplevel_eval(margs[0]);
mfunc = jl_method_lookup(jl_gf_mtable(margs[0]), margs, nargs, 1, world);
if (mfunc == NULL) {
JL_GC_POP();
jl_method_error((jl_function_t*)margs[0], margs, nargs, world);
// unreachable
}
Expand Down

0 comments on commit 01b0881

Please sign in to comment.