diff --git a/src/Sema.zig b/src/Sema.zig index 38897cde1cae8cc2df4c370341c2f5efa1c25153..0d5e27eb092d0954be396c1e7ca0aac89070f59e 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,