aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-07-07 17:21:16 +0200
committerDuncan Sands <baldrick@gcc.gnu.org>2010-07-07 15:21:16 +0000
commitf625098e0c1b2cbb0abc21b760b3fd4a1fb3d22b (patch)
tree2dce095224c9f7d0714f3bc2e0f6ad7230dc1e15 /gcc/tree.c
parentab33bd5ceb055d40a2f84faa603f0367a0e0f13b (diff)
downloadgcc-f625098e0c1b2cbb0abc21b760b3fd4a1fb3d22b.zip
gcc-f625098e0c1b2cbb0abc21b760b3fd4a1fb3d22b.tar.gz
gcc-f625098e0c1b2cbb0abc21b760b3fd4a1fb3d22b.tar.bz2
When materializing a cloned function with arguments removed,
to TYPE_POINTER_TO field of the new type (which has fewer arguments) was left pointing to the original type. From-SVN: r161918
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index dda9287..2ddd1d8 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -7350,7 +7350,7 @@ build_function_type_skip_args (tree orig_type, bitmap args_to_skip)
if (TREE_CODE (orig_type) != METHOD_TYPE
|| !bitmap_bit_p (args_to_skip, 0))
{
- new_type = copy_node (orig_type);
+ new_type = build_distinct_type_copy (orig_type);
TYPE_ARG_TYPES (new_type) = new_reversed;
}
else