| ... | @@ -6572,8 +6572,7 @@ static TypeTableEntry *ir_analyze_instruction_array_len(IrAnalyze *ira, | ... | @@ -6572,8 +6572,7 @@ static TypeTableEntry *ir_analyze_instruction_array_len(IrAnalyze *ira, |
| 6572 | len_val->data.x_bignum.data.x_uint, depends_on_compile_var); | 6572 | len_val->data.x_bignum.data.x_uint, depends_on_compile_var); |
| 6573 | } | 6573 | } |
| 6574 | } | 6574 | } |
| 6575 | TypeStructField *field = find_struct_type_field(canon_type, buf_create_from_str("len")); | 6575 | TypeStructField *field = &canon_type->data.structure.fields[slice_len_index]; |
| 6576 | assert(field); | | |
| 6577 | IrInstruction *len_ptr = ir_build_struct_field_ptr(&ira->new_irb, array_len_instruction->base.scope, | 6576 | IrInstruction *len_ptr = ir_build_struct_field_ptr(&ira->new_irb, array_len_instruction->base.scope, |
| 6578 | array_len_instruction->base.source_node, array_value, field); | 6577 | array_len_instruction->base.source_node, array_value, field); |
| 6579 | len_ptr->type_entry = get_pointer_to_type(ira->codegen, ira->codegen->builtin_types.entry_usize, true); | 6578 | len_ptr->type_entry = get_pointer_to_type(ira->codegen, ira->codegen->builtin_types.entry_usize, true); |