aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-expr.h
diff options
context:
space:
mode:
authorjjasmine <tanghocle456@gmail.com>2024-05-24 15:35:16 -0700
committerCohenArthur <arthur.cohen@embecosm.com>2024-06-13 15:31:07 +0000
commit69265253d17c6b190ee4e495c3782e007795248c (patch)
tree165f031e89e9d24d22864397cdadec0bef571410 /gcc/rust/ast/rust-expr.h
parent93e27fa1b2ef168a5831ebc3ac676b4a2a1c55c2 (diff)
downloadgcc-69265253d17c6b190ee4e495c3782e007795248c.zip
gcc-69265253d17c6b190ee4e495c3782e007795248c.tar.gz
gcc-69265253d17c6b190ee4e495c3782e007795248c.tar.bz2
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.
Diffstat (limited to 'gcc/rust/ast/rust-expr.h')
-rw-r--r--gcc/rust/ast/rust-expr.h1
1 files changed, 1 insertions, 0 deletions
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;
}
};