From a0628a62ad2a9024872b2ae1eb67a8c873cc80c6 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 2 Aug 2021 14:18:24 +0200 Subject: Handle 'UnsafeBlockExpr' in liveness analysis We may then remove the '{ dg-options "-w" }' as discussed in and #601. --- gcc/rust/lint/rust-lint-marklive.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/rust') diff --git a/gcc/rust/lint/rust-lint-marklive.h b/gcc/rust/lint/rust-lint-marklive.h index 742175b..062bb96 100644 --- a/gcc/rust/lint/rust-lint-marklive.h +++ b/gcc/rust/lint/rust-lint-marklive.h @@ -107,6 +107,11 @@ public: } } + void visit (HIR::UnsafeBlockExpr &expr) override + { + expr.get_block_expr ()->accept_vis (*this); + } + void visit (HIR::LoopExpr &expr) override { expr.get_loop_block ()->accept_vis (*this); -- cgit v1.1