Skip to content

Commit

Permalink
fix(arc): dev blocks scope (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
xensik authored Feb 13, 2024
1 parent 2caaf75 commit d244339
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 @@ -244,7 +244,12 @@ auto compiler::emit_stmt_dev(stmt_dev const& stm) -> void
auto end = create_label();
developer_thread_ = true;
emit_opcode(opcode::OP_DevblockBegin, end);

auto& paren = scopes_.back();
scopes_.push_back(scope(paren.brk, paren.cnt));
emit_stmt_list(*stm.block);
scopes_.pop_back();

insert_label(end);
developer_thread_ = false;
}
Expand Down

0 comments on commit d244339

Please sign in to comment.