Commit 293f35fc by Jan Hubicka Committed by Jan Hubicka

re PR lto/87089 (tree check: expected class 'type', have 'declaration'…

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
parent 42fceb01
2019-02-09 Jan Hubicka <hubicka@ucw.cz>
PR lto/87809
* tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
instead of type_with_linkage.
2019-02-09 Jan Hubicka <hubicka@ucw.cz>
PR ipa/88755
* params.def (uninlined-function-insns, uninlined-function-time,
uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment