diff options
author | Duncan Sands <baldrick@free.fr> | 2010-07-07 17:21:16 +0200 |
---|---|---|
committer | Duncan Sands <baldrick@gcc.gnu.org> | 2010-07-07 15:21:16 +0000 |
commit | f625098e0c1b2cbb0abc21b760b3fd4a1fb3d22b (patch) | |
tree | 2dce095224c9f7d0714f3bc2e0f6ad7230dc1e15 /gcc/tree.c | |
parent | ab33bd5ceb055d40a2f84faa603f0367a0e0f13b (diff) | |
download | gcc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |