aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjjasmine <tanghocle456@gmail.com>2024-06-23 11:00:58 -0700
committerCohenArthur <arthur.cohen@embecosm.com>2024-06-24 13:18:26 +0000
commit40d52922469989d16626fd29d1943596af919d92 (patch)
tree5a8e233f69d443c5fa3cbbe7bb1277b24435f5ae
parent2ce6c08f21a756c513b7ea7cb22a3c0067665790 (diff)
downloadgcc-40d52922469989d16626fd29d1943596af919d92.zip
gcc-40d52922469989d16626fd29d1943596af919d92.tar.gz
gcc-40d52922469989d16626fd29d1943596af919d92.tar.bz2
Added ExprType::InlineAsm
gcc/rust/ChangeLog: * hir/tree/rust-hir-expr.h: Added ExprType::InlineAsm * hir/tree/rust-hir.h: Added ExprType::InlineAsm
-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 15a32cf..9851cb1 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 f66f53f..b427f1d 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; }