diff --git a/gcc/rust/hir/tree/rust-hir-expr.h b/gcc/rust/hir/tree/rust-hir-expr.h index 15a32cf989d7..9851cb1bb1dc 100644 --- a/gcc/rust/hir/tree/rust-hir-expr.h +++ b/gcc/rust/hir/tree/rust-hir-expr.h @@ -3893,8 +3893,7 @@ class InlineAsm : public ExprWithoutBlock 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 get_template_ () { diff --git a/gcc/rust/hir/tree/rust-hir.h b/gcc/rust/hir/tree/rust-hir.h index f66f53fbd204..b427f1d204dc 100644 --- a/gcc/rust/hir/tree/rust-hir.h +++ b/gcc/rust/hir/tree/rust-hir.h @@ -303,6 +303,7 @@ class Expr : public Node, virtual public FullVisitable Await, AsyncBlock, Path, + InlineAsm, }; BaseKind get_hir_kind () override final { return EXPR; }