| ... | ... | @@ -12399,7 +12399,8 @@ static ZigType *ir_analyze_array_cat(IrAnalyze *ira, IrInstructionBinOp *instruc |
| 12399 | 12399 | assert(ptr_val->data.x_ptr.special == ConstPtrSpecialBaseArray); |
| 12400 | 12400 | op1_array_val = ptr_val->data.x_ptr.data.base_array.array_val; |
| 12401 | 12401 | op1_array_index = ptr_val->data.x_ptr.data.base_array.elem_index; |
| 12402 | | op1_array_end = op1_array_val->type->data.array.len; |
| 12402 | ConstExprValue *len_val = &op1_val->data.x_struct.fields[slice_len_index]; |
| 12403 | op1_array_end = bigint_as_unsigned(&len_val->data.x_bigint); |
| 12403 | 12404 | } else { |
| 12404 | 12405 | ir_add_error(ira, op1, |
| 12405 | 12406 | buf_sprintf("expected array or C string literal, found '%s'", buf_ptr(&op1->value.type->name))); |
| ... | ... | @@ -12446,6 +12447,8 @@ static ZigType *ir_analyze_array_cat(IrAnalyze *ira, IrInstructionBinOp *instruc |
| 12446 | 12447 | op2_array_val = ptr_val->data.x_ptr.data.base_array.array_val; |
| 12447 | 12448 | op2_array_index = ptr_val->data.x_ptr.data.base_array.elem_index; |
| 12448 | 12449 | op2_array_end = op2_array_val->type->data.array.len; |
| 12450 | ConstExprValue *len_val = &op2_val->data.x_struct.fields[slice_len_index]; |
| 12451 | op2_array_end = bigint_as_unsigned(&len_val->data.x_bigint); |
| 12449 | 12452 | } else { |
| 12450 | 12453 | ir_add_error(ira, op2, |
| 12451 | 12454 | buf_sprintf("expected array or C string literal, found '%s'", buf_ptr(&op2->value.type->name))); |