From 173148bb1200269fb5d9c0aab13ca9c34fbc8d36 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 21 Jan 2015 19:19:25 +0100 Subject: [PATCH] ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect edges. * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect edges. From-SVN: r219962 --- gcc/ChangeLog | 5 +++++ gcc/ipa-utils.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1c0a45e5e7f..4f3cc89fae6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-21 Jan Hubicka + + * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect + edges. + 2015-01-21 Bernd Edlinger * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread diff --git a/gcc/ipa-utils.c b/gcc/ipa-utils.c index 76125481cd9..a8bb42d4263 100644 --- a/gcc/ipa-utils.c +++ b/gcc/ipa-utils.c @@ -634,7 +634,7 @@ ipa_merge_profiles (struct cgraph_node *dst, speculations when merging. */ gcc_unreachable (); } - else if (e2->speculative) + else if (e2 && e2->speculative) { cgraph_edge *direct, *indirect; ipa_ref *ref; -- 2.30.2