aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree/rust-hir-expr.h
diff options
context:
space:
mode:
authorjjasmine <tanghocle456@gmail.com>2024-06-23 11:00:58 -0700
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-17 16:35:49 +0100
commita9c95b82781062aeb0dcebdbcc21d38c6c185d7a (patch)
tree15b49a9f9793ed9df59412b556bc60f0165e8eae /gcc/rust/hir/tree/rust-hir-expr.h
parent10ba2fdca79c949c3be8acaab73a2fe6ddccc57b (diff)
downloadgcc-a9c95b82781062aeb0dcebdbcc21d38c6c185d7a.zip
gcc-a9c95b82781062aeb0dcebdbcc21d38c6c185d7a.tar.gz
gcc-a9c95b82781062aeb0dcebdbcc21d38c6c185d7a.tar.bz2
gccrs: Added ExprType::InlineAsm
gcc/rust/ChangeLog: * hir/tree/rust-hir-expr.h: Added ExprType::InlineAsm * hir/tree/rust-hir.h: Added ExprType::InlineAsm
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir-expr.h')
-rw-r--r--gcc/rust/hir/tree/rust-hir-expr.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-expr.h b/gcc/rust/hir/tree/rust-hir-expr.h
index 9c66f3e..d8cfe68 100644
--- a/gcc/rust/hir/tree/rust-hir-expr.h
+++ b/gcc/rust/hir/tree/rust-hir-expr.h
@@ -3893,8 +3893,7 @@ public:
ExprType get_expression_type () const final override
{
- // TODO: Not sure if this expression type is UnsafeBlock or not.
- return ExprType::UnsafeBlock;
+ return ExprType::InlineAsm;
}
std::vector<AST::InlineAsmTemplatePiece> get_template_ ()
{