From: Jan Hubicka Date: Mon, 9 Feb 2015 20:24:55 +0000 (+0100) Subject: ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE on getting VOID... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62c7e4b7485d26f3bbc3cf648ea86346955ac4c7;p=gcc.git ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE on getting VOID pointer. * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE on getting VOID pointer. From-SVN: r220545 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 78c1af1e2e4..e661a9d7168 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-02-08 Jan Hubicka + + * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE + on getting VOID pointer. + 2015-02-09 Jakub Jelinek PR target/64979 diff --git a/gcc/ipa-polymorphic-call.c b/gcc/ipa-polymorphic-call.c index 5ad5e517fed..aaa549e03d3 100644 --- a/gcc/ipa-polymorphic-call.c +++ b/gcc/ipa-polymorphic-call.c @@ -1078,7 +1078,7 @@ ipa_polymorphic_call_context::ipa_polymorphic_call_context (tree fndecl, base_type = TREE_TYPE (gimple_assign_rhs1 (SSA_NAME_DEF_STMT (base_pointer))); - if (POINTER_TYPE_P (base_type)) + if (base_type && POINTER_TYPE_P (base_type)) combine_speculation_with (TYPE_MAIN_VARIANT (TREE_TYPE (base_type)), offset, true, NULL /* Do not change type here */);