aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-10-28 09:19:56 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2019-10-28 08:19:56 +0000
commit5a0236f8ca9d239bb62ef54c9273e6ca3f068f87 (patch)
tree5910753b032daa5ccc64774b42e60c1f7a3c3713 /gcc/ipa-prop.c
parentffbdd78a4a84d80a5303d4f7a20553cf96954db9 (diff)
downloadgcc-5a0236f8ca9d239bb62ef54c9273e6ca3f068f87.zip
gcc-5a0236f8ca9d239bb62ef54c9273e6ca3f068f87.tar.gz
gcc-5a0236f8ca9d239bb62ef54c9273e6ca3f068f87.tar.bz2
re PR ipa/92242 (LTO ICE in ipa_get_cs_argument_count ipa-prop.h:598)
PR ipa/92242 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check for missing EDGE_REF * ipa-prop.c (update_jump_functions_after_inlining): Likewise. From-SVN: r277504
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r--gcc/ipa-prop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index edab920..0dd73561 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -2741,7 +2741,7 @@ update_jump_functions_after_inlining (struct cgraph_edge *cs,
/* We must check range due to calls with variable number of arguments
and we cannot combine jump functions with operations. */
if (dst->value.pass_through.operation == NOP_EXPR
- && (dst->value.pass_through.formal_id
+ && (top && dst->value.pass_through.formal_id
< ipa_get_cs_argument_count (top)))
{
int dst_fid = dst->value.pass_through.formal_id;
@@ -3430,7 +3430,7 @@ update_indirect_edges_after_inlining (struct cgraph_edge *cs,
continue;
/* We must check range due to calls with variable number of arguments: */
- if (ici->param_index >= ipa_get_cs_argument_count (top))
+ if (!top || ici->param_index >= ipa_get_cs_argument_count (top))
{
ici->param_index = -1;
continue;