diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-10-10 10:27:50 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-10-10 10:27:50 +0100 |
| commit | f5318c46d13ed3f3de20e0f61c4193e6ad46a42b (patch) | |
| tree | 89f62b9ea2e6b07816335c6695e358051e8152f1 /src/codegen/codegen.cpp | |
| parent | 90babbfbf30cc9c611af74e8c0af3562faf4d58b (diff) | |
Implicit Values: `context`; Fix lvalue selector assignments; Fix offset_of* for `using` fields.
Diffstat (limited to 'src/codegen/codegen.cpp')
| -rw-r--r-- | src/codegen/codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |