commit 772793c004e387bd37c0cd3b7f849936e7fdae4c (tree)
parent 426af68b7d234bceba029d65f3388ad2376da649
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 3 Sep 2025 16:35:02 -0700
Sema: fix accessing ptr field of double array pointer with sentinel
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Sema.zig b/src/Sema.zig
@@ -26892,7 +26892,7 @@ fn fieldPtr(
const ptr_info = object_ty.ptrInfo(zcu);
const new_ptr_ty = try pt.ptrTypeSema(.{
.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 = .{
.size = .many,
.alignment = ptr_info.flags.alignment,