aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-09-03 16:35:02 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-09-20 18:33:00 -0700
commit772793c004e387bd37c0cd3b7f849936e7fdae4c (patch)
tree4aec1fe63fa03d6c1935d7a766adc29f7f00598e /src/Sema.zig
parent426af68b7d234bceba029d65f3388ad2376da649 (diff)
downloadzig-772793c004e387bd37c0cd3b7f849936e7fdae4c.tar.gz
zig-772793c004e387bd37c0cd3b7f849936e7fdae4c.zip
Sema: fix accessing ptr field of double array pointer with sentinel
Diffstat (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index 38897cde1c..0d5e27eb09 100644
--- 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,