| ... | ... | @@ -7936,9 +7936,10 @@ static TypeTableEntry *ir_analyze_maybe(IrAnalyze *ira, IrInstructionUnOp *un_op |
| 7936 | 7936 | IrInstruction *value = un_op_instruction->value->other; |
| 7937 | 7937 | TypeTableEntry *type_entry = ir_resolve_type(ira, value); |
| 7938 | 7938 | TypeTableEntry *canon_type = get_underlying_type(type_entry); |
| 7939 | if (type_is_invalid(canon_type)) |
| 7940 | return ira->codegen->builtin_types.entry_invalid; |
| 7939 | 7941 | switch (canon_type->id) { |
| 7940 | 7942 | case TypeTableEntryIdInvalid: |
| 7941 | | return ira->codegen->builtin_types.entry_invalid; |
| 7942 | 7943 | case TypeTableEntryIdVar: |
| 7943 | 7944 | case TypeTableEntryIdTypeDecl: |
| 7944 | 7945 | zig_unreachable(); |
| ... | ... | @@ -9997,7 +9998,7 @@ static TypeTableEntry *ir_analyze_instruction_container_init_list(IrAnalyze *ira |
| 9997 | 9998 | static TypeTableEntry *ir_analyze_instruction_container_init_fields(IrAnalyze *ira, IrInstructionContainerInitFields *instruction) { |
| 9998 | 9999 | IrInstruction *container_type_value = instruction->container_type->other; |
| 9999 | 10000 | TypeTableEntry *container_type = ir_resolve_type(ira, container_type_value); |
| 10000 | | if (container_type->id == TypeTableEntryIdInvalid) |
| 10001 | if (type_is_invalid(container_type)) |
| 10001 | 10002 | return ira->codegen->builtin_types.entry_invalid; |
| 10002 | 10003 | |
| 10003 | 10004 | bool depends_on_compile_var = container_type_value->value.depends_on_compile_var; |