jit-builtins.c: Fix segfault on unsupported builtins
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 1 Dec 2014 18:16:37 +0000 (18:16 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 1 Dec 2014 18:16:37 +0000 (18:16 +0000)
commit23844fd7306763ee07f27acd6883fd47bc858ec3
tree1d2badcdfd4c27a7c730c42dff28bb7ade429644
parentc6760a13178f56f5aea081b0f88fa7695a9daf58
jit-builtins.c: Fix segfault on unsupported builtins

gcc/jit/ChangeLog:
* jit-builtins.c
(gcc::jit::recording::builtins_manager::get_builtin_function):
Check for NULL return from make_builtin_function.
(gcc::jit::recording::builtins_manager::make_builtin_function):
Check for NULL return from get_type.

From-SVN: r218239
gcc/jit/ChangeLog
gcc/jit/jit-builtins.c