diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-02-09 21:24:55 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-02-09 20:24:55 +0000 |
commit | 62c7e4b7485d26f3bbc3cf648ea86346955ac4c7 (patch) | |
tree | d134a9d81aed4c89ee765df62c335bcad623b3ab /gcc/ipa-polymorphic-call.c | |
parent | a02f26f6d8162f5fe400b75d6aa2cde4c43ae86a (diff) | |
download | gcc-62c7e4b7485d26f3bbc3cf648ea86346955ac4c7.zip gcc-62c7e4b7485d26f3bbc3cf648ea86346955ac4c7.tar.gz gcc-62c7e4b7485d26f3bbc3cf648ea86346955ac4c7.tar.bz2 |
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
Diffstat (limited to 'gcc/ipa-polymorphic-call.c')
-rw-r--r-- | gcc/ipa-polymorphic-call.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-polymorphic-call.c b/gcc/ipa-polymorphic-call.c index 5ad5e51..aaa549e 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 */); |