Skip to content

Commit

Permalink
Fix another IRBuilder InsertionPoint leak.
Browse files Browse the repository at this point in the history
Similar to #18054. Proper fix would be not to have a global builder.
  • Loading branch information
maleadt committed Oct 17, 2016
1 parent d6d3069 commit 5eb07c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3854,6 +3854,9 @@ static Function *gen_cfun_wrapper(jl_function_t *ff, jl_value_t *jlrettype, jl_t
else
builder.CreateRet(r);

builder.SetCurrentDebugLocation(noDbg);
builder.ClearInsertionPoint();

jl_finalize_module(M, true);

return cw_proto;
Expand Down

0 comments on commit 5eb07c4

Please sign in to comment.