| ... | @@ -25426,6 +25426,10 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInst *source_instr, ZigTypeI | ... | @@ -25426,6 +25426,10 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInst *source_instr, ZigTypeI |
| 25426 | assert(payload->type == ir_type_info_get_type(ira, "Vector", nullptr)); | 25426 | assert(payload->type == ir_type_info_get_type(ira, "Vector", nullptr)); |
| 25427 | BigInt *len = get_const_field_lit_int(ira, source_instr->source_node, payload, "len", 0); | 25427 | BigInt *len = get_const_field_lit_int(ira, source_instr->source_node, payload, "len", 0); |
| 25428 | ZigType *child_type = get_const_field_meta_type(ira, source_instr->source_node, payload, "child", 1); | 25428 | ZigType *child_type = get_const_field_meta_type(ira, source_instr->source_node, payload, "child", 1); |
| | 25429 | Error err; |
| | 25430 | if ((err = ir_validate_vector_elem_type(ira, source_instr->source_node, child_type))) { |
| | 25431 | return ira->codegen->invalid_inst_gen->value->type; |
| | 25432 | } |
| 25429 | return get_vector_type(ira->codegen, bigint_as_u32(len), child_type); | 25433 | return get_vector_type(ira->codegen, bigint_as_u32(len), child_type); |
| 25430 | } | 25434 | } |
| 25431 | case ZigTypeIdAnyFrame: { | 25435 | case ZigTypeIdAnyFrame: { |