From 82101198f1ff2438f5db61d3a85eee3e0e1b95db Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 18 Dec 2016 20:09:34 -0500 Subject: workaround for Arch being a primitive type --- src/ir.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index 14771f5321..875337a3ac 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -6833,8 +6833,7 @@ static TypeTableEntry *ir_analyze_container_field_ptr(IrAnalyze *ira, Buf *field IrInstructionFieldPtr *field_ptr_instruction, IrInstruction *container_ptr, TypeTableEntry *container_type) { TypeTableEntry *bare_type = container_ref_type(container_type); - if (!type_is_complete(bare_type)) - resolve_container_type(ira->codegen, bare_type); + ensure_complete_type(ira->codegen, bare_type); if (bare_type->id == TypeTableEntryIdStruct) { TypeStructField *field = find_struct_type_field(bare_type, field_name); -- cgit v1.2.3