Sema: fix merge conflicts with previous commit

The previous commit and e8813b296bc55a13b534bd9b2a03e1f6af366915 had
merge conflicts which didn't get caught by git.
This commit is contained in:
Andrew Kelley 2022-03-22 20:44:32 -07:00
parent e81ebc24e9
commit 8326ab7adb

View File

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