aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjjasmine <tanghocle456@gmail.com>2024-05-24 15:35:16 -0700
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-17 16:35:41 +0100
commitbcd7de43808fb4bc5f761dd88bd84f69b029c7c0 (patch)
tree8da6b4ba444f04007e218391b2474a909c26cd12 /gcc
parent939b1262faf21e80bcee958dcda6d4393b24dd36 (diff)
downloadgcc-bcd7de43808fb4bc5f761dd88bd84f69b029c7c0.zip
gcc-bcd7de43808fb4bc5f761dd88bd84f69b029c7c0.tar.gz
gcc-bcd7de43808fb4bc5f761dd88bd84f69b029c7c0.tar.bz2
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.
Diffstat (limited to 'gcc')
-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;
}
};