aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-12-18 20:09:34 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-12-18 20:09:34 -0500
commit82101198f1ff2438f5db61d3a85eee3e0e1b95db (patch)
tree74e197e1000e88677b40629cc0f6ec40223f1923 /src/ir.cpp
parenta71fbe49cbbf068e00300533d5f3874efadb8c18 (diff)
downloadzig-82101198f1ff2438f5db61d3a85eee3e0e1b95db.tar.gz
zig-82101198f1ff2438f5db61d3a85eee3e0e1b95db.zip
workaround for Arch being a primitive type
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp3
1 files changed, 1 insertions, 2 deletions
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);