diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2016-06-24 19:28:18 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2016-06-24 19:28:18 +0000 |
commit | 7b22b4c6c8dfb60f51e872b3e9f153652b9beadd (patch) | |
tree | 62f49803ce42203d6f5228c0422e7832b8cb8847 /gcc/tree-inline.c | |
parent | 37e373c2b825584243f3d67a31263e5a0f7b9d15 (diff) | |
download | gcc-7b22b4c6c8dfb60f51e872b3e9f153652b9beadd.zip gcc-7b22b4c6c8dfb60f51e872b3e9f153652b9beadd.tar.gz gcc-7b22b4c6c8dfb60f51e872b3e9f153652b9beadd.tar.bz2 |
re PR debug/71642 (ICE: in gen_type_die_with_usage, at dwarf2out.c:22729)
PR debug/71642
* tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
copy the type name.
From-SVN: r237771
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index a0d9e93..ef58866 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -377,7 +377,7 @@ remap_decl (tree decl, copy_body_data *id) { tree x = build_variant_type_copy (TREE_TYPE (t)); TYPE_STUB_DECL (x) = TYPE_STUB_DECL (TREE_TYPE (t)); - TYPE_NAME (x) = t; + TYPE_NAME (x) = TYPE_NAME (TREE_TYPE (t)); DECL_ORIGINAL_TYPE (t) = x; } } |