diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-04-29 20:49:31 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-04-29 20:49:31 -0700 |
| commit | 5d696b0706de2ac267cb774ef39e0d81131d5c38 (patch) | |
| tree | 0e7a903e54510035ba0a437a0343bc0f1330cbc2 /src/Module.zig | |
| parent | 8ab4a003c8f22a3fd8f84bdb2fc27d8c20d3bf2f (diff) | |
| download | zig-5d696b0706de2ac267cb774ef39e0d81131d5c38.tar.gz zig-5d696b0706de2ac267cb774ef39e0d81131d5c38.zip | |
stage2: fix File incorrectly freeing its Namespace
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig index 76a740bdc0..5ef0448849 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -776,6 +776,7 @@ pub const Scope = struct { pkg: *Package, /// The namespace of the struct that represents this file. /// Populated only when status is success. + /// Owned by its owner Decl Value. namespace: *Namespace, /// All namespaces that this file contains. This is here so that /// when a file is updated, and new ZIR code is generated, the @@ -812,7 +813,6 @@ pub const Scope = struct { pub fn deinit(file: *File, mod: *Module) void { const gpa = mod.gpa; - file.namespace.deinit(mod); gpa.free(file.sub_file_path); file.unload(gpa); file.* = undefined; |
