diff options
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 7ec0640256..d0681faad6 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -2438,9 +2438,8 @@ fn flush( if (comp.bin_file) |lf| { // This is needed before reading the error flags. lf.flush(arena, tid, prog_node) catch |err| switch (err) { - error.FlushFailure, error.LinkFailure => {}, // error reported through link_diags.flags - error.LLDReportedFailure => {}, // error reported via lockAndParseLldStderr - else => |e| return e, + error.LinkFailure => {}, // Already reported. + error.OutOfMemory => return error.OutOfMemory, }; } |
