tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before accessing SSA_NAME_PT...
authorKugan Vivekanandarajah <kuganv@linaro.org>
Thu, 4 Aug 2016 09:15:03 +0000 (09:15 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Thu, 4 Aug 2016 09:15:03 +0000 (09:15 +0000)
gcc/ChangeLog:

2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>

* tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
accessing SSA_NAME_PTR_INFO.

From-SVN: r239118

gcc/ChangeLog
gcc/tree-inline.c

index 940096a131faf0d10993cbf8d28c05ef45732f58..2d9d8c17202a98a6b38b579a25833b70fb555e3a 100644 (file)
@@ -1,3 +1,8 @@
+2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
+
+       * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
+       accessing SSA_NAME_PTR_INFO.
+
 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
 
        PR 70677
index f2b44915a3ef31ef1cca99d6579b84832b24e8e3..83ba423417772fd6e5214ddd602873734679e7fd 100644 (file)
@@ -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)
        {