https://gcc.gnu.org/g:40d52922469989d16626fd29d1943596af919d92

commit 40d52922469989d16626fd29d1943596af919d92
Author: jjasmine <tanghocle...@gmail.com>
Date:   Sun Jun 23 11:00:58 2024 -0700

    Added ExprType::InlineAsm
    
    gcc/rust/ChangeLog:
    
            * hir/tree/rust-hir-expr.h:
            Added ExprType::InlineAsm
            * hir/tree/rust-hir.h:
            Added ExprType::InlineAsm

Diff:
---
 gcc/rust/hir/tree/rust-hir-expr.h | 3 +--
 gcc/rust/hir/tree/rust-hir.h      | 1 +
 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 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 @@ 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 f66f53fbd204..b427f1d204dc 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; }

Reply via email to