diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-04-21 17:56:29 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-04-21 17:56:29 +0100 |
| commit | 91ed51ff5c9c49a739f6a835acf6df492690e2cd (patch) | |
| tree | 958418f9bf05865f11ece0b3a88183e25174089b /src/ir.c | |
| parent | 4d0afc55c353563607206a085432c258e3dc92e1 (diff) | |
Continue work on custom SSA; Fix double declaration in `when` statements
Diffstat (limited to 'src/ir.c')
| -rw-r--r-- | src/ir.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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()); |