aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-07-09 15:31:47 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-07-18 19:02:05 -0700
commitc193872c814ab2c9fefcc884782301157ba8c29e (patch)
treef2a5995565f82cb42436751aff6d04707d569f5a /src/Module.zig
parent4a55fc6c53b27ed9be0bd316969fbdfbef98ad1f (diff)
downloadzig-c193872c814ab2c9fefcc884782301157ba8c29e.tar.gz
zig-c193872c814ab2c9fefcc884782301157ba8c29e.zip
InternPool: implement indexToKey for func_instance and func_decl
Also delete incorrect frees an arena-allocated parameters.
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Module.zig b/src/Module.zig
index e750364b44..83449f093b 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -4279,10 +4279,7 @@ fn semaDecl(mod: *Module, decl_index: Decl.Index) !bool {
.inlining = null,
.is_comptime = true,
};
- defer {
- block_scope.instructions.deinit(gpa);
- block_scope.params.deinit(gpa);
- }
+ defer block_scope.instructions.deinit(gpa);
const zir_block_index = decl.zirBlockIndex(mod);
const inst_data = zir_datas[zir_block_index].pl_node;