PR jit/63854: Fix leak within jit-builtins.c
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Dec 2014 17:22:19 +0000 (17:22 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Dec 2014 17:22:19 +0000 (17:22 +0000)
commit786b000781504b66da03762766ac92320ebf998b
tree990760a012debff08c2e3175f91ef5fd8c611529
parent6702d09abd7520f448ade151a36ebb36b73aaa4c
PR jit/63854: Fix leak within jit-builtins.c

gcc/jit/ChangeLog:
PR jit/63854
* jit-builtins.c
(gcc::jit::recording::builtins_manager::make_fn_type): Call the
context's new_function_type method, rather than directly creating
a function_type instance.
* jit-recording.c
(gcc::jit::recording::context::new_function_type): New method,
adapted from part of...
(gcc::jit::recording::context::new_function_ptr_type): ...this.
Update to call new_function_type.
* jit-recording.h
(gcc::jit::recording::context::new_function_type): New method.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218231 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/jit/ChangeLog
gcc/jit/jit-builtins.c
gcc/jit/jit-recording.c
gcc/jit/jit-recording.h