aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-02-09 19:01:03 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2019-02-09 18:01:03 +0000
commit293f35fcd5e143ae25f31de28820ec5cf252b67a (patch)
tree3d4d60a256ee4d5dd5deb3714b2e88e54a8121d7 /gcc/tree.c
parent42fceb01cb620fe18ffbc6d58eb154c00307cfff (diff)
downloadgcc-293f35fcd5e143ae25f31de28820ec5cf252b67a.zip
gcc-293f35fcd5e143ae25f31de28820ec5cf252b67a.tar.gz
gcc-293f35fcd5e143ae25f31de28820ec5cf252b67a.tar.bz2
re PR lto/87089 (tree check: expected class 'type', have 'declaration' (namespace_decl) in type_with_linkage_p, at ipa-utils.h)
PR lto/87809 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P instead of type_with_linkage. From-SVN: r268728
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 9e55499..3e51a85 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5152,7 +5152,8 @@ fld_simplified_type_name (tree type)
/* Drop TYPE_DECLs in TYPE_NAME in favor of the identifier in the
TYPE_DECL if the type doesn't have linkage.
this must match fld_ */
- if (type != TYPE_MAIN_VARIANT (type) || ! type_with_linkage_p (type))
+ if (type != TYPE_MAIN_VARIANT (type)
+ || !DECL_ASSEMBLER_NAME_SET_P (TYPE_NAME (type)))
return DECL_NAME (TYPE_NAME (type));
return TYPE_NAME (type);
}