| ... | @@ -9904,6 +9904,9 @@ static TypeTableEntry *ir_analyze_instruction_size_of(IrAnalyze *ira, | ... | @@ -9904,6 +9904,9 @@ static TypeTableEntry *ir_analyze_instruction_size_of(IrAnalyze *ira, |
| 9904 | IrInstruction *type_value = size_of_instruction->type_value->other; | 9904 | IrInstruction *type_value = size_of_instruction->type_value->other; |
| 9905 | TypeTableEntry *type_entry = ir_resolve_type(ira, type_value); | 9905 | TypeTableEntry *type_entry = ir_resolve_type(ira, type_value); |
| 9906 | TypeTableEntry *canon_type_entry = get_underlying_type(type_entry); | 9906 | TypeTableEntry *canon_type_entry = get_underlying_type(type_entry); |
| | 9907 | |
| | 9908 | ensure_complete_type(ira->codegen, type_entry); |
| | 9909 | |
| 9907 | switch (canon_type_entry->id) { | 9910 | switch (canon_type_entry->id) { |
| 9908 | case TypeTableEntryIdInvalid: | 9911 | case TypeTableEntryIdInvalid: |
| 9909 | return ira->codegen->builtin_types.entry_invalid; | 9912 | return ira->codegen->builtin_types.entry_invalid; |