From: Jan Hubicka Date: Wed, 21 Jan 2015 18:19:25 +0000 (+0100) Subject: ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect edges. X-Git-Tag: releases/gcc-5.1.0~1485 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=173148bb1200269fb5d9c0aab13ca9c34fbc8d36;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1c0a45e5e7ff..4f3cc89fae61 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 76125481cd9f..a8bb42d42639 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;