From: jjasmine Date: Sun, 23 Jun 2024 18:00:58 +0000 (-0700) Subject: gccrs: Added ExprType::InlineAsm X-Git-Tag: basepoints/gcc-16~1343 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9c95b82781062aeb0dcebdbcc21d38c6c185d7a;p=thirdparty%2Fgcc.git gccrs: Added ExprType::InlineAsm gcc/rust/ChangeLog: * hir/tree/rust-hir-expr.h: Added ExprType::InlineAsm * hir/tree/rust-hir.h: Added ExprType::InlineAsm --- diff --git a/gcc/rust/hir/tree/rust-hir-expr.h b/gcc/rust/hir/tree/rust-hir-expr.h index 9c66f3e79d5..d8cfe68bbc5 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 get_template_ () { diff --git a/gcc/rust/hir/tree/rust-hir.h b/gcc/rust/hir/tree/rust-hir.h index a0f5d8145ec..d7245d4a4a8 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; }