Skip to content

Commit

Permalink
c++/modules: stream TREE_UNAVAILABLE and LAMBDA_EXPR_REGEN_INFO
Browse files Browse the repository at this point in the history
Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for
trunk?

-- >8 --

gcc/cp/ChangeLog:

	* module.cc (trees_out::core_bools): Stream TREE_UNAVAILABLE.
	(trees_in::core_bools): Likewise.
	(trees_out::core_vals): Stream LAMBDA_EXPR_REGEN_INFO.
	(trees_in::core_vals): Likewise.
  • Loading branch information
Patrick Palka authored and ouuleilei-bot committed Feb 15, 2024
1 parent c2d62cd commit 54fbd00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gcc/cp/module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5353,6 +5353,7 @@ trees_out::core_bools (tree t)
WB (t->base.u.bits.user_align);
WB (t->base.u.bits.nameless_flag);
WB (t->base.u.bits.atomic_flag);
WB (t->base.u.bits.unavailable_flag);
break;
}

Expand Down Expand Up @@ -5533,6 +5534,7 @@ trees_in::core_bools (tree t)
RB (t->base.u.bits.user_align);
RB (t->base.u.bits.nameless_flag);
RB (t->base.u.bits.atomic_flag);
RB (t->base.u.bits.unavailable_flag);
break;
}

Expand Down Expand Up @@ -6319,6 +6321,7 @@ trees_out::core_vals (tree t)
WT (((lang_tree_node *)t)->lambda_expression.capture_list);
WT (((lang_tree_node *)t)->lambda_expression.this_capture);
WT (((lang_tree_node *)t)->lambda_expression.extra_scope);
WT (((lang_tree_node *)t)->lambda_expression.regen_info);
/* pending_proxies is a parse-time thing. */
gcc_assert (!((lang_tree_node *)t)->lambda_expression.pending_proxies);
if (state)
Expand Down Expand Up @@ -6815,6 +6818,7 @@ trees_in::core_vals (tree t)
RT (((lang_tree_node *)t)->lambda_expression.capture_list);
RT (((lang_tree_node *)t)->lambda_expression.this_capture);
RT (((lang_tree_node *)t)->lambda_expression.extra_scope);
RT (((lang_tree_node *)t)->lambda_expression.regen_info);
/* lambda_expression.pending_proxies is NULL */
((lang_tree_node *)t)->lambda_expression.locus
= state->read_location (*this);
Expand Down

0 comments on commit 54fbd00

Please sign in to comment.