Legalize: implement scalarization of @select

This commit is contained in:
Jacob Young
2025-05-30 18:04:30 -04:00
committed by mlugg
parent 32a57bfeaa
commit b48d6ff619
5 changed files with 102 additions and 21 deletions

View File

@@ -2529,6 +2529,7 @@ pub fn destroy(comp: *Compilation) void {
pub fn clearMiscFailures(comp: *Compilation) void {
comp.alloc_failure_occurred = false;
comp.link_diags.flags = .{};
for (comp.misc_failures.values()) |*value| {
value.deinit(comp.gpa);
}
@@ -2795,7 +2796,6 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) !void {
if (anyErrors(comp)) {
// Skip flushing and keep source files loaded for error reporting.
comp.link_diags.flags = .{};
return;
}