From: Kugan Vivekanandarajah Date: Thu, 4 Aug 2016 09:15:03 +0000 (+0000) Subject: tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before accessing SSA_NAME_PT... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=231b11697033ece8fa924c4c320bc92a806afba8;p=gcc.git tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before accessing SSA_NAME_PTR_INFO. gcc/ChangeLog: 2016-08-04 Kugan Vivekanandarajah * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before accessing SSA_NAME_PTR_INFO. From-SVN: r239118 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 940096a131f..2d9d8c17202 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-08-04 Kugan Vivekanandarajah + + * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before + accessing SSA_NAME_PTR_INFO. + 2016-08-04 Georg-Johann Lay PR 70677 diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index f2b44915a3e..83ba4234177 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -244,6 +244,7 @@ remap_ssa_name (tree name, copy_body_data *id) /* At least IPA points-to info can be directly transferred. */ if (id->src_cfun->gimple_df && id->src_cfun->gimple_df->ipa_pta + && POINTER_TYPE_P (TREE_TYPE (name)) && (pi = SSA_NAME_PTR_INFO (name)) && !pi->pt.anything) { @@ -276,6 +277,7 @@ remap_ssa_name (tree name, copy_body_data *id) /* At least IPA points-to info can be directly transferred. */ if (id->src_cfun->gimple_df && id->src_cfun->gimple_df->ipa_pta + && POINTER_TYPE_P (TREE_TYPE (name)) && (pi = SSA_NAME_PTR_INFO (name)) && !pi->pt.anything) {