]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Added ExprType::InlineAsm
authorjjasmine <tanghocle456@gmail.com>
Sun, 23 Jun 2024 18:00:58 +0000 (11:00 -0700)
committerCohenArthur <arthur.cohen@embecosm.com>
Mon, 24 Jun 2024 13:18:26 +0000 (13:18 +0000)
gcc/rust/ChangeLog:

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

gcc/rust/hir/tree/rust-hir-expr.h
gcc/rust/hir/tree/rust-hir.h

index 15a32cf989d752c69068c8c0f6d7f52535858986..9851cb1bb1dc0821e276953d99f9de298690f41f 100644 (file)
@@ -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_ ()
   {
index f66f53fbd2042e298915c56232d639139cdfa234..b427f1d204dcdbddea6c1ada7034f6bc4fcb0f6e 100644 (file)
@@ -303,6 +303,7 @@ public:
     Await,
     AsyncBlock,
     Path,
+    InlineAsm,
   };
 
   BaseKind get_hir_kind () override final { return EXPR; }