From 263b1c85419f19094f103ee7ad1eac0346768c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Poulhi=C3=A8s?= Date: Sat, 21 Sep 2024 10:44:12 +0200 Subject: [PATCH] gccrs: adjust hir dump of BlockExpr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- gcc/rust/hir/rust-hir-dump.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/rust/hir/rust-hir-dump.cc b/gcc/rust/hir/rust-hir-dump.cc index d9e02f5d2416..6d750dc1c589 100644 --- a/gcc/rust/hir/rust-hir-dump.cc +++ b/gcc/rust/hir/rust-hir-dump.cc @@ -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 ());