From df227996152312e07f0f9925f62081ea98406fed Mon Sep 17 00:00:00 2001 From: xensik Date: Mon, 15 Jan 2024 20:43:21 +0100 Subject: [PATCH] fix(arc): dev block opcode --- src/arc/compiler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/arc/compiler.cpp b/src/arc/compiler.cpp index 5acacabc..dc73b371 100644 --- a/src/arc/compiler.cpp +++ b/src/arc/compiler.cpp @@ -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