Merge pull request #24661 from alichraghi/spv4

spirv: refactor and remove deduplication ISel
This commit is contained in:
Andrew Kelley
2025-08-07 20:55:50 -07:00
committed by GitHub
17 changed files with 8245 additions and 12002 deletions

View File

@@ -177,7 +177,13 @@ const Os = switch (builtin.os.tag) {
const gop = try w.dir_table.getOrPut(gpa, path);
if (!gop.found_existing) {
var mount_id: MountId = undefined;
const dir_handle = try Os.getDirHandle(gpa, path, &mount_id);
const dir_handle = Os.getDirHandle(gpa, path, &mount_id) catch |err| switch (err) {
error.FileNotFound => {
std.debug.assert(w.dir_table.swapRemove(path));
continue;
},
else => return err,
};
const fan_fd = blk: {
const fd_gop = try w.os.poll_fds.getOrPut(gpa, mount_id);
if (!fd_gop.found_existing) {