Commit 2de0ccc8 by Nathan Sidwell Committed by Nathan Sidwell

lex.c (maybe_add_lang_type_raw): Exit early, rather than use a flag.

	* lex.c (maybe_add_lang_type_raw): Exit early, rather than use a
	flag.

From-SVN: r249790
parent 56b2a94b
2017-06-29 Nathan Sidwell <nathan@acm.org> 2017-06-29 Nathan Sidwell <nathan@acm.org>
* lex.c (maybe_add_lang_type_raw): Exit early, rather than use a
flag.
* call.c (check_dtor_name): Use constructor_name for enums too. * call.c (check_dtor_name): Use constructor_name for enums too.
(build_new_method_call_1): Use constructor_name for cdtors and (build_new_method_call_1): Use constructor_name for cdtors and
show ~ for dtor. show ~ for dtor.
......
...@@ -741,10 +741,10 @@ copy_type (tree type MEM_STAT_DECL) ...@@ -741,10 +741,10 @@ copy_type (tree type MEM_STAT_DECL)
static bool static bool
maybe_add_lang_type_raw (tree t) maybe_add_lang_type_raw (tree t)
{ {
bool add = (RECORD_OR_UNION_CODE_P (TREE_CODE (t)) if (!(RECORD_OR_UNION_CODE_P (TREE_CODE (t))
|| TREE_CODE (t) == BOUND_TEMPLATE_TEMPLATE_PARM); || TREE_CODE (t) == BOUND_TEMPLATE_TEMPLATE_PARM))
if (add) return false;
{
TYPE_LANG_SPECIFIC (t) TYPE_LANG_SPECIFIC (t)
= (struct lang_type *) (ggc_internal_cleared_alloc = (struct lang_type *) (ggc_internal_cleared_alloc
(sizeof (struct lang_type))); (sizeof (struct lang_type)));
...@@ -754,8 +754,8 @@ maybe_add_lang_type_raw (tree t) ...@@ -754,8 +754,8 @@ maybe_add_lang_type_raw (tree t)
tree_node_counts[(int)lang_type] += 1; tree_node_counts[(int)lang_type] += 1;
tree_node_sizes[(int)lang_type] += sizeof (struct lang_type); tree_node_sizes[(int)lang_type] += sizeof (struct lang_type);
} }
}
return add; return true;
} }
tree tree
......
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