aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug/MachOFile.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-06 17:52:57 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:08 -0800
commit8328de24f13e21e325207b19288a143854df50df (patch)
treeef7c9c46f969e31258a4c052c85f5a9ecfc34b80 /lib/std/debug/MachOFile.zig
parentdd1d15b72aa3bae4b38e2337609758ffb7a7b55a (diff)
downloadzig-8328de24f13e21e325207b19288a143854df50df.tar.gz
zig-8328de24f13e21e325207b19288a143854df50df.zip
update all occurrences of openFile to receive an io instance
Diffstat (limited to 'lib/std/debug/MachOFile.zig')
-rw-r--r--lib/std/debug/MachOFile.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug/MachOFile.zig b/lib/std/debug/MachOFile.zig
index 3f0f620a90..ae904c0aec 100644
--- a/lib/std/debug/MachOFile.zig
+++ b/lib/std/debug/MachOFile.zig
@@ -512,7 +512,7 @@ fn loadOFile(gpa: Allocator, io: Io, o_file_name: []const u8) !OFile {
/// Uses `mmap` to map the file at `path` into memory.
fn mapDebugInfoFile(io: Io, path: []const u8) ![]align(std.heap.page_size_min) const u8 {
- const file = std.fs.cwd().openFile(path, .{}) catch |err| switch (err) {
+ const file = std.fs.cwd().openFile(io, path, .{}) catch |err| switch (err) {
error.FileNotFound => return error.MissingDebugInfo,
else => return error.ReadFailed,
};