aboutsummaryrefslogtreecommitdiff
path: root/src/ir.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-04-21 17:56:29 +0100
committerGinger Bill <bill@gingerbill.org>2017-04-21 17:56:29 +0100
commit91ed51ff5c9c49a739f6a835acf6df492690e2cd (patch)
tree958418f9bf05865f11ece0b3a88183e25174089b /src/ir.c
parent4d0afc55c353563607206a085432c258e3dc92e1 (diff)
Continue work on custom SSA; Fix double declaration in `when` statements
Diffstat (limited to 'src/ir.c')
-rw-r--r--src/ir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ir.c b/src/ir.c
index 500e221f0..87bfe7095 100644
--- a/src/ir.c
+++ b/src/ir.c
@@ -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());