fix(arc): dev block opcode (#185)

This commit is contained in:
Xenxo Espasandín 2024-01-20 12:37:30 +01:00 committed by GitHub
parent 2dbff1a408
commit 08405c0c90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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