diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-12-18 17:24:52 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-12-18 17:24:52 -0500 |
| commit | 37b13bf1512d8eed7308a2194c1935d91a33796c (patch) | |
| tree | 42b6d1d4b6ddd16c7f69c4bdd15677a720609cf3 /src/ir.cpp | |
| parent | e50ced44a2cf6268c19df901ad56b367d8d802fe (diff) | |
| download | zig-37b13bf1512d8eed7308a2194c1935d91a33796c.tar.gz zig-37b13bf1512d8eed7308a2194c1935d91a33796c.zip | |
hello.zig working with all structs anonymous
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index d2729d8ed1..ae6fd78d1f 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -8007,6 +8007,9 @@ static TypeTableEntry *ir_analyze_container_init_fields(IrAnalyze *ira, IrInstru TypeTableEntry *container_type, size_t instr_field_count, IrInstructionContainerInitFieldsField *fields, bool depends_on_compile_var) { + if (!type_is_complete(container_type)) + resolve_container_type(ira->codegen, container_type); + size_t actual_field_count = container_type->data.structure.src_field_count; IrInstruction *first_non_const_instruction = nullptr; |
