From 69265253d17c6b190ee4e495c3782e007795248c Mon Sep 17 00:00:00 2001 From: jjasmine Date: Fri, 24 May 2024 15:35:16 -0700 Subject: Safegaurd InlineAsm's clone_expr_... Safegaurd InlineAsm's clone_expr_... with unreachable since we would never use them. gcc/rust/ChangeLog: * ast/rust-expr.h: Safegaurd InlineAsm's clone_expr_... with unreachable. --- gcc/rust/ast/rust-expr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc') diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index bceef82..1af7296 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -4873,6 +4873,7 @@ public: ExprWithoutBlock *clone_expr_without_block_impl () const override { + rust_unreachable (); return nullptr; } }; -- cgit v1.1