]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Safegaurd InlineAsm's clone_expr_...
authorjjasmine <tanghocle456@gmail.com>
Fri, 24 May 2024 22:35:16 +0000 (15:35 -0700)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 17 Mar 2025 15:35:41 +0000 (16:35 +0100)
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

index bceef827dfb0050b2e24206d20b4c5c57bed53a6..1af72965a93eab351d291225f15a6718fe9b2e79 100644 (file)
@@ -4873,6 +4873,7 @@ public:
 
   ExprWithoutBlock *clone_expr_without_block_impl () const override
   {
+    rust_unreachable ();
     return nullptr;
   }
 };