mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
Sema: fix missed slice access OPV
This commit is contained in:
parent
71a9b35c0f
commit
0958ea3391
@ -28582,6 +28582,10 @@ fn elemValSlice(
|
||||
}
|
||||
}
|
||||
|
||||
if (try sema.typeHasOnePossibleValue(elem_ty)) |elem_only_value| {
|
||||
return Air.internedToRef(elem_only_value.toIntern());
|
||||
}
|
||||
|
||||
try sema.validateRuntimeElemAccess(block, elem_index_src, elem_ty, slice_ty, slice_src);
|
||||
try sema.validateRuntimeValue(block, slice_src, slice);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user