| ... | @@ -19871,7 +19871,7 @@ fn analyzeSlice( | ... | @@ -19871,7 +19871,7 @@ fn analyzeSlice( |
| 19871 | if (try sema.resolveDefinedValue(block, src, ptr_or_slice)) |slice_val| { | 19871 | if (try sema.resolveDefinedValue(block, src, ptr_or_slice)) |slice_val| { |
| 19872 | // we don't need to add one for sentinels because the | 19872 | // we don't need to add one for sentinels because the |
| 19873 | // underlying value data includes the sentinel | 19873 | // underlying value data includes the sentinel |
| 19874 | break :blk try sema.addIntUnsigned(Type.usize, slice_val.sliceLen()); | 19874 | break :blk try sema.addIntUnsigned(Type.usize, slice_val.sliceLen(target)); |
| 19875 | } | 19875 | } |
| 19876 | | 19876 | |
| 19877 | const slice_len_inst = try block.addTyOp(.slice_len, Type.usize, ptr_or_slice); | 19877 | const slice_len_inst = try block.addTyOp(.slice_len, Type.usize, ptr_or_slice); |