fix(arc): dev blocks scope (#193)
This commit is contained in:
parent
2caaf75128
commit
d2443394f6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user