authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-06-11 14:15:58-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-06-11 14:15:58-04:00
log0ac566892df34daa179548aa32c170eea1794ed7
tree1b2bd8c5e6300554d46c62db7177b70d4ba43075
parent515092210fe9d9f55c146bdea78289273b97bc0b
signaturelock-open Commit is signed but in an unrecognized format.

fix for loop index variable not in scope


1 files changed, 1 insertions(+), 1 deletions(-)

src/ir.cpp+1-1
......@@ -6202,7 +6202,7 @@ static IrInstruction *ir_gen_for_expr(IrBuilder *irb, Scope *parent_scope, AstNo
62026202
62036203 IrInstruction *zero = ir_build_const_usize(irb, parent_scope, node, 0);
62046204 build_decl_var_and_init(irb, parent_scope, index_var_source_node, index_var, zero, index_var_name, is_comptime);
6205 parent_scope = index_var->parent_scope;
6205 parent_scope = index_var->child_scope;
62066206
62076207 IrInstruction *one = ir_build_const_usize(irb, parent_scope, node, 1);
62086208 IrInstruction *index_ptr = ir_build_var_ptr(irb, parent_scope, node, index_var);