| ... | @@ -32508,11 +32508,11 @@ fn analyzeSlice( | ... | @@ -32508,11 +32508,11 @@ fn analyzeSlice( |
| 32508 | const actual_len = if (array_ty.zigTypeTag(zcu) == .array) | 32508 | const actual_len = if (array_ty.zigTypeTag(zcu) == .array) |
| 32509 | try pt.intRef(.usize, array_ty.arrayLenIncludingSentinel(zcu)) | 32509 | try pt.intRef(.usize, array_ty.arrayLenIncludingSentinel(zcu)) |
| 32510 | else if (slice_ty.isSlice(zcu)) l: { | 32510 | else if (slice_ty.isSlice(zcu)) l: { |
| 32511 | const slice_len_inst = try block.addTyOp(.slice_len, .usize, ptr_or_slice); | 32511 | const slice_len = try sema.analyzeSliceLen(block, src, ptr_or_slice); |
| 32512 | break :l if (slice_ty.sentinel(zcu) == null) | 32512 | break :l if (slice_ty.sentinel(zcu) == null) |
| 32513 | slice_len_inst | 32513 | slice_len |
| 32514 | else | 32514 | else |
| 32515 | try sema.analyzeArithmetic(block, .add, slice_len_inst, .one, src, end_src, end_src, true); | 32515 | try sema.analyzeArithmetic(block, .add, slice_len, .one, src, end_src, end_src, true); |
| 32516 | } else break :bounds_check; | 32516 | } else break :bounds_check; |
| 32517 | | 32517 | |
| 32518 | const actual_end = if (slice_sentinel != null) | 32518 | const actual_end = if (slice_sentinel != null) |