]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa-prop.c (ipa_modify_formal_parameters): Use build_distinct_type_copy.
authorRichard Guenther <rguenther@suse.de>
Fri, 30 Jul 2010 09:36:18 +0000 (09:36 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 30 Jul 2010 09:36:18 +0000 (09:36 +0000)
2010-07-30  Richard Guenther  <rguenther@suse.de>

* ipa-prop.c (ipa_modify_formal_parameters): Use
build_distinct_type_copy.

From-SVN: r162707

gcc/ChangeLog
gcc/ipa-prop.c

index f4365a3f56d6c3269f61926a7aee338d4a10ae70..07da5fda978a27f57bc7e4fd39aed631c26f4a7d 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-30  Richard Guenther  <rguenther@suse.de>
+
+       * ipa-prop.c (ipa_modify_formal_parameters): Use
+       build_distinct_type_copy.
+
 2010-07-30  Anthony Green  <green@moxielogic.com>
 
        * config/moxie/rtems.h: New file.
index 77e84c11f7a1927dd942a74814752b15100faa25..c5da8f84fdbb516528e6a205d3dae0b3cbf6b846 100644 (file)
@@ -2077,7 +2077,7 @@ ipa_modify_formal_parameters (tree fndecl, ipa_parm_adjustment_vec adjustments,
        || (VEC_index (ipa_parm_adjustment_t, adjustments, 0)->copy_param
         && VEC_index (ipa_parm_adjustment_t, adjustments, 0)->base_index == 0))
     {
-      new_type = copy_node (orig_type);
+      new_type = build_distinct_type_copy (orig_type);
       TYPE_ARG_TYPES (new_type) = new_reversed;
     }
   else