diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-15 08:46:54 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-15 08:46:54 +0000 |
commit | 5037630b5905208c661b055440d4725296dd4e08 (patch) | |
tree | 2ee67c1d000ab70c095c824802e9c6b17abbd790 /gcc/lto-streamer-in.c | |
parent | ceaeebbe61c0c92d66bbdc874affdac627ed00c0 (diff) | |
download | gcc-5037630b5905208c661b055440d4725296dd4e08.tar.gz |
* lto-streamer-in.c (input function): Call cgraph_create_node if
cgraph_get_node failed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204836 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer-in.c')
-rw-r--r-- | gcc/lto-streamer-in.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index 449632af38c..4a31b05d52e 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -917,7 +917,8 @@ input_function (tree fn_decl, struct data_in *data_in, gimple_register_cfg_hooks (); node = cgraph_get_node (fn_decl); - gcc_checking_assert (node); + if (!node) + node = cgraph_create_node (fn_decl); input_struct_function_base (fn, data_in, ib); input_cfg (ib_cfg, fn, node->count_materialization_scale); |