Skip to content

Commit

Permalink
gccrs: adjust hir dump of BlockExpr
Browse files Browse the repository at this point in the history
Add tail_reachable and label fields to the dump.

gcc/rust/ChangeLog:

	* hir/rust-hir-dump.cc (Dump::visit): Add missing fields.

Signed-off-by: Marc Poulhiès <[email protected]>
  • Loading branch information
dkm authored and P-E-P committed Sep 23, 2024
1 parent 39eb3a4 commit 263b1c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcc/rust/hir/rust-hir-dump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,8 @@ Dump::visit (BlockExpr &e)
begin ("BlockExpr");
do_expr (e);
do_inner_attrs (e);
put_field ("tail_reachable", std::to_string (e.is_tail_reachable ()));
put_field ("label", e.get_label ().as_string ());

visit_collection ("statements", e.get_statements ());

Expand Down

0 comments on commit 263b1c8

Please sign in to comment.