Continue work on custom SSA; Fix double declaration in when statements

This commit is contained in:
Ginger Bill
2017-04-21 17:56:29 +01:00
parent 4d0afc55c3
commit 91ed51ff5c
10 changed files with 557 additions and 272 deletions
+2
View File
@@ -1138,6 +1138,8 @@ irBlock *ir_new_block(irProcedure *proc, AstNode *node, char *label) {
v->Block.node = node;
v->Block.scope = scope;
v->Block.parent = proc;
// TODO(bill): Is this correct or even needed?
v->Block.scope_index = proc->scope_index;
array_init(&v->Block.instrs, heap_allocator());
array_init(&v->Block.locals, heap_allocator());