diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2021-08-02 14:18:24 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2021-08-02 14:18:24 +0200 |
commit | a0628a62ad2a9024872b2ae1eb67a8c873cc80c6 (patch) | |
tree | bc2b019b911677a16618fdac1c7db2ec5fb69603 /gcc/rust | |
parent | b56c6fdfaad9ca1681714d288d1282cf08554462 (diff) | |
download | gcc-a0628a62ad2a9024872b2ae1eb67a8c873cc80c6.zip gcc-a0628a62ad2a9024872b2ae1eb67a8c873cc80c6.tar.gz gcc-a0628a62ad2a9024872b2ae1eb67a8c873cc80c6.tar.bz2 |
Handle 'UnsafeBlockExpr' in liveness analysis
We may then remove the '{ dg-options "-w" }' as discussed in
<http://mid.mail-archive.com/YQciMeKNpCH+ZMsJ@wildebeest.org> and #601.
Diffstat (limited to 'gcc/rust')
-rw-r--r-- | gcc/rust/lint/rust-lint-marklive.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |