From: jjasmine Date: Fri, 24 May 2024 22:35:16 +0000 (-0700) Subject: gccrs: Safegaurd InlineAsm's clone_expr_... X-Git-Tag: basepoints/gcc-16~1370 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcd7de43808fb4bc5f761dd88bd84f69b029c7c0;p=thirdparty%2Fgcc.git gccrs: 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. --- diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index bceef827dfb..1af72965a93 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; } };