Skip to content

Commit

Permalink
fix(arc): dev block opcode (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
xensik authored Jan 20, 2024
1 parent 2dbff1a commit 08405c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/arc/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,12 @@ auto compiler::emit_stmt_comp(stmt_comp const& stm) -> void

auto compiler::emit_stmt_dev(stmt_dev const& stm) -> void
{
auto end = create_label();
developer_thread_ = true;
emit_opcode(opcode::OP_DevblockBegin, end);
emit_stmt_list(*stm.block);
insert_label(end);
developer_thread_ = false;
}

auto compiler::emit_stmt_expr(stmt_expr const& stm) -> void
Expand Down

0 comments on commit 08405c0

Please sign in to comment.