mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
Sema: prepare for sentinel -> sentinel_ptr field rename
The commit 2 after this will explain this diff.
This commit is contained in:
parent
b6abe1dbf7
commit
726c94d5f1
@ -21617,7 +21617,7 @@ fn zirReify(
|
||||
).?);
|
||||
const sentinel_val = try Value.fromInterned(union_val.val).fieldValue(pt, struct_type.nameIndex(
|
||||
ip,
|
||||
try ip.getOrPutString(gpa, pt.tid, "sentinel", .no_embedded_nulls),
|
||||
try ip.getOrPutString(gpa, pt.tid, "sentinel_ptr", .no_embedded_nulls),
|
||||
).?);
|
||||
|
||||
if (!try sema.intFitsInType(alignment_val, Type.u32, null)) {
|
||||
@ -21703,7 +21703,7 @@ fn zirReify(
|
||||
).?);
|
||||
const sentinel_val = try Value.fromInterned(union_val.val).fieldValue(pt, struct_type.nameIndex(
|
||||
ip,
|
||||
try ip.getOrPutString(gpa, pt.tid, "sentinel", .no_embedded_nulls),
|
||||
try ip.getOrPutString(gpa, pt.tid, "sentinel_ptr", .no_embedded_nulls),
|
||||
).?);
|
||||
|
||||
const len = try len_val.toUnsignedIntSema(pt);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user