authorgravatar for justus@klausecker.deJustus Klausecker <justus@klausecker.de> 2026-01-10 15:31:55+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-01-11 11:37:18+00:00
log2479966df2ab1c375ec48be025cb265b6887ded5
tree599a834815cdde66cdd5b76da0ad39deb9f8d658
parent5a376d97d4595f12dffaf54c4cfc303b0e902cc6
signaturelock-open Commit is signed but in an unrecognized format.

Sema: fix integration with `Io.Threaded`


1 files changed, 5 insertions(+), 3 deletions(-)

src/Sema.zig+5-3
...@@ -13174,19 +13174,21 @@ fn resolveSwitchItem(...@@ -13174,19 +13174,21 @@ fn resolveSwitchItem(
13174 const pt = sema.pt;13174 const pt = sema.pt;
13175 const zcu = pt.zcu;13175 const zcu = pt.zcu;
13176 const ip = &zcu.intern_pool;13176 const ip = &zcu.intern_pool;
13177 const gpa = sema.gpa;13177 const comp = zcu.comp;
13178 const gpa = comp.gpa;
13179 const io = comp.io;
1317813180
13179 var end = extra_index;13181 var end = extra_index;
13180 const uncoerced: Air.Inst.Ref, const uncoerced_ty: Type = uncoerced: switch (item_info.unwrap()) {13182 const uncoerced: Air.Inst.Ref, const uncoerced_ty: Type = uncoerced: switch (item_info.unwrap()) {
13181 .enum_literal => |str_index| {13183 .enum_literal => |str_index| {
13182 const zir_str = sema.code.nullTerminatedString(str_index);13184 const zir_str = sema.code.nullTerminatedString(str_index);
13183 const name = try ip.getOrPutString(gpa, pt.tid, zir_str, .no_embedded_nulls);13185 const name = try ip.getOrPutString(gpa, io, pt.tid, zir_str, .no_embedded_nulls);
13184 const uncoerced = try sema.analyzeDeclLiteral(block, item_src, name, item_ty, false);13186 const uncoerced = try sema.analyzeDeclLiteral(block, item_src, name, item_ty, false);
13185 break :uncoerced .{ uncoerced, .enum_literal };13187 break :uncoerced .{ uncoerced, .enum_literal };
13186 },13188 },
13187 .error_value => |str_index| {13189 .error_value => |str_index| {
13188 const zir_str = sema.code.nullTerminatedString(str_index);13190 const zir_str = sema.code.nullTerminatedString(str_index);
13189 const name = try ip.getOrPutString(gpa, pt.tid, zir_str, .no_embedded_nulls);13191 const name = try ip.getOrPutString(gpa, io, pt.tid, zir_str, .no_embedded_nulls);
13190 // Make sure there's an error integer value associated with `name`.13192 // Make sure there's an error integer value associated with `name`.
13191 _ = try pt.getErrorValue(name);13193 _ = try pt.getErrorValue(name);
13192 const err_set_ty = try pt.singleErrorSetType(name);13194 const err_set_ty = try pt.singleErrorSetType(name);