| ... | @@ -20942,6 +20942,13 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInstruction *instruction, Zi | ... | @@ -20942,6 +20942,13 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInstruction *instruction, Zi |
| 20942 | return ptr_type; | 20942 | return ptr_type; |
| 20943 | return get_slice_type(ira->codegen, ptr_type); | 20943 | return get_slice_type(ira->codegen, ptr_type); |
| 20944 | } | 20944 | } |
| | 20945 | case ZigTypeIdArray: |
| | 20946 | assert(payload->special == ConstValSpecialStatic); |
| | 20947 | assert(payload->type == ir_type_info_get_type(ira, "Array", nullptr)); |
| | 20948 | return get_array_type(ira->codegen, |
| | 20949 | get_const_field_meta_type(ira, payload, "child", 1), |
| | 20950 | bigint_as_u64(get_const_field_lit_int(ira, payload, "len", 0)) |
| | 20951 | ); |
| 20945 | case ZigTypeIdComptimeFloat: | 20952 | case ZigTypeIdComptimeFloat: |
| 20946 | return ira->codegen->builtin_types.entry_num_lit_float; | 20953 | return ira->codegen->builtin_types.entry_num_lit_float; |
| 20947 | case ZigTypeIdComptimeInt: | 20954 | case ZigTypeIdComptimeInt: |
| ... | @@ -20950,7 +20957,6 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInstruction *instruction, Zi | ... | @@ -20950,7 +20957,6 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInstruction *instruction, Zi |
| 20950 | return ira->codegen->builtin_types.entry_undef; | 20957 | return ira->codegen->builtin_types.entry_undef; |
| 20951 | case ZigTypeIdNull: | 20958 | case ZigTypeIdNull: |
| 20952 | return ira->codegen->builtin_types.entry_null; | 20959 | return ira->codegen->builtin_types.entry_null; |
| 20953 | case ZigTypeIdArray: | | |
| 20954 | case ZigTypeIdOptional: | 20960 | case ZigTypeIdOptional: |
| 20955 | case ZigTypeIdErrorUnion: | 20961 | case ZigTypeIdErrorUnion: |
| 20956 | case ZigTypeIdErrorSet: | 20962 | case ZigTypeIdErrorSet: |