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
This commit is contained in:
Jan Hubicka 2015-01-21 19:19:25 +01:00 committed by Jan Hubicka
parent 2f3c4b6968
commit 173148bb12
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2015-01-21 Jan Hubicka <hubicka@ucw.cz>
* ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
edges.
2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
* gimplify.c (gimplify_function_tree): Check the no_sanitize_thread

View file

@ -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;