mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
stage2: fix double-free when error reading cached ZIR
We already had a `keep_zir` flag. No need to call deinit manually.
This commit is contained in:
parent
003bba47cc
commit
ca974de521
@ -2622,7 +2622,6 @@ pub fn astGenFile(mod: *Module, file: *File) !void {
|
||||
zir.extra.len * 4;
|
||||
if (amt_read != amt_expected) {
|
||||
log.warn("unexpected EOF reading cached ZIR for {s}", .{file.sub_file_path});
|
||||
zir.deinit(gpa);
|
||||
break :cached;
|
||||
}
|
||||
if (data_has_safety_tag) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user