From f5318c46d13ed3f3de20e0f61c4193e6ad46a42b Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Mon, 10 Oct 2016 10:27:50 +0100 Subject: Implicit Values: `context`; Fix lvalue selector assignments; Fix offset_of* for `using` fields. --- src/codegen/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/codegen/codegen.cpp') diff --git a/src/codegen/codegen.cpp b/src/codegen/codegen.cpp index 377a4eaee..6ca29902a 100644 --- a/src/codegen/codegen.cpp +++ b/src/codegen/codegen.cpp @@ -450,7 +450,7 @@ void ssa_gen_tree(ssaGen *s) { Entity *f = t->Record.fields_in_src_order[i]; ssaValue *tip = get_type_info_ptr(proc, type_info_data, f->type); i64 foffset = t->Record.struct_offsets[f->Variable.field_index]; - GB_ASSERT(f->kind == Entity_Variable && f->Variable.is_field); + GB_ASSERT(f->kind == Entity_Variable && f->Variable.field); isize source_index = f->Variable.field_index; ssaValue *field = ssa_emit_ptr_offset(proc, memory, ssa_make_const_int(a, source_index)); -- cgit v1.2.3