summaryrefslogtreecommitdiff
path: root/gcc/ipa-utils.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-21 18:19:25 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-21 18:19:25 +0000
commit7b1e7168a12f288848c5727283f133ce03574965 (patch)
treea3e5fd1072829092a58fd46c965239291d0aca59 /gcc/ipa-utils.c
parent1e666245d22e82f8676e7c26a9708e5f36624912 (diff)
downloadgcc-7b1e7168a12f288848c5727283f133ce03574965.tar.gz
* ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
edges. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219962 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-utils.c')
-rw-r--r--gcc/ipa-utils.c2
1 files changed, 1 insertions, 1 deletions
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;