]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Safegaurd InlineAsm's clone_expr_...
authorjjasmine <tanghocle456@gmail.com>
Fri, 24 May 2024 22:35:16 +0000 (15:35 -0700)
committerCohenArthur <arthur.cohen@embecosm.com>
Thu, 13 Jun 2024 15:31:07 +0000 (15:31 +0000)
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;
   }
 };