diff options
author | Richard Guenther <rguenther@suse.de> | 2010-07-30 09:36:18 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-07-30 09:36:18 +0000 |
commit | 4eb3f32c268f5b3f769d8b17eae32e88b9934e35 (patch) | |
tree | e718cbef4c1c092a549d0f1210f454a614b9e385 | |
parent | 1242723ce9e7e84e2ace61e72d26ae70a95543f6 (diff) | |
download | gcc-4eb3f32c268f5b3f769d8b17eae32e88b9934e35.zip gcc-4eb3f32c268f5b3f769d8b17eae32e88b9934e35.tar.gz gcc-4eb3f32c268f5b3f769d8b17eae32e88b9934e35.tar.bz2 |
ipa-prop.c (ipa_modify_formal_parameters): Use build_distinct_type_copy.
2010-07-30 Richard Guenther <rguenther@suse.de>
* ipa-prop.c (ipa_modify_formal_parameters): Use
build_distinct_type_copy.
From-SVN: r162707
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-prop.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f4365a3..07da5fd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 77e84c1..c5da8f8 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -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 |