Skip to content

Commit

Permalink
Added ExprType::InlineAsm
Browse files Browse the repository at this point in the history
gcc/rust/ChangeLog:

	* hir/tree/rust-hir-expr.h:
	Added ExprType::InlineAsm
	* hir/tree/rust-hir.h:
	Added ExprType::InlineAsm
  • Loading branch information
badumbatish authored and CohenArthur committed Jun 24, 2024
1 parent 2ce6c08 commit 40d5292
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions gcc/rust/hir/tree/rust-hir-expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<AST::InlineAsmTemplatePiece> get_template_ ()
{
Expand Down
1 change: 1 addition & 0 deletions gcc/rust/hir/tree/rust-hir.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ class Expr : public Node, virtual public FullVisitable
Await,
AsyncBlock,
Path,
InlineAsm,
};

BaseKind get_hir_kind () override final { return EXPR; }
Expand Down

0 comments on commit 40d5292

Please sign in to comment.