diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-12-19 21:06:55 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-12-19 21:06:55 -0500 |
| commit | c10ae8622bc07baeea1fb81522b01fc6e953eaf6 (patch) | |
| tree | 7434d51e692fa5a35128b545cffbbdfaecc7eb76 /src/ir.cpp | |
| parent | 3ea4f264ffa4a189bc489113fe4ae24741e78466 (diff) | |
| download | zig-c10ae8622bc07baeea1fb81522b01fc6e953eaf6.tar.gz zig-c10ae8622bc07baeea1fb81522b01fc6e953eaf6.zip | |
IR: fix lazy eval of enum field access
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index ceee4e5a7b..69b843efac 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -7166,6 +7166,7 @@ static TypeTableEntry *ir_analyze_instruction_field_ptr(IrAnalyze *ira, IrInstru return ira->codegen->builtin_types.entry_invalid; } else if (is_container(child_type)) { if (child_type->id == TypeTableEntryIdEnum) { + ensure_complete_type(ira->codegen, child_type); TypeEnumField *field = find_enum_type_field(child_type, field_name); if (field) { if (field->type_entry->id == TypeTableEntryIdVoid) { |
