From: Jan Hubicka Date: Sun, 16 Dec 2018 18:57:48 +0000 (+0100) Subject: ipa-fnsummary.c (remap_edge_change_prob): Do not ICE when changes are not streamed in. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c02e054351eede75adf7cbffa8e9dfc20057623;p=gcc.git ipa-fnsummary.c (remap_edge_change_prob): Do not ICE when changes are not streamed in. * ipa-fnsummary.c (remap_edge_change_prob): Do not ICE when changes are not streamed in. From-SVN: r267191 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b957549157..83cacbfc1b1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-12-15 Jan Hubicka + + * ipa-fnsummary.c (remap_edge_change_prob): Do not ICE when changes + are not streamed in. + 2018-12-15 H.J. Lu PR target/88483 diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index 2f038909ab4..471ec503851 100644 --- a/gcc/ipa-fnsummary.c +++ b/gcc/ipa-fnsummary.c @@ -2861,6 +2861,9 @@ remap_edge_change_prob (struct cgraph_edge *inlined_edge, struct ipa_call_summary *inlined_es = ipa_call_summaries->get (inlined_edge); + if (es->param.length () == 0) + return; + for (i = 0; i < ipa_get_cs_argument_count (args); i++) { struct ipa_jump_func *jfunc = ipa_get_ith_jump_func (args, i);