mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Sema: fix accessing ptr field of double array pointer with sentinel
This commit is contained in:
parent
426af68b7d
commit
772793c004
1 changed files with 1 additions and 1 deletions
|
|
@ -26892,7 +26892,7 @@ fn fieldPtr(
|
||||||
const ptr_info = object_ty.ptrInfo(zcu);
|
const ptr_info = object_ty.ptrInfo(zcu);
|
||||||
const new_ptr_ty = try pt.ptrTypeSema(.{
|
const new_ptr_ty = try pt.ptrTypeSema(.{
|
||||||
.child = Type.fromInterned(ptr_info.child).childType(zcu).toIntern(),
|
.child = Type.fromInterned(ptr_info.child).childType(zcu).toIntern(),
|
||||||
.sentinel = if (object_ty.sentinel(zcu)) |s| s.toIntern() else .none,
|
.sentinel = if (inner_ty.sentinel(zcu)) |s| s.toIntern() else .none,
|
||||||
.flags = .{
|
.flags = .{
|
||||||
.size = .many,
|
.size = .many,
|
||||||
.alignment = ptr_info.flags.alignment,
|
.alignment = ptr_info.flags.alignment,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue