aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/hir/tree')
-rw-r--r--gcc/rust/hir/tree/rust-hir-expr.h3
-rw-r--r--gcc/rust/hir/tree/rust-hir.h1
2 files changed, 2 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_ ()
{
diff --git a/gcc/rust/hir/tree/rust-hir.h b/gcc/rust/hir/tree/rust-hir.h
index a0f5d81..d7245d4 100644
--- a/gcc/rust/hir/tree/rust-hir.h
+++ b/gcc/rust/hir/tree/rust-hir.h
@@ -303,6 +303,7 @@ public:
Await,
AsyncBlock,
Path,
+ InlineAsm,
};
BaseKind get_hir_kind () override final { return EXPR; }