diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-02-26 11:21:10 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-02-26 11:21:10 -0500 |
| commit | 62de32a18c1eecedc29055e4199fa364f9e9b7c6 (patch) | |
| tree | c30178b457a4afcca39e355da12502f2c6216a7f /src/codegen.cpp | |
| parent | 22432b15e31d506d070171b2932d5df71e9a1b9e (diff) | |
| download | zig-62de32a18c1eecedc29055e4199fa364f9e9b7c6.tar.gz zig-62de32a18c1eecedc29055e4199fa364f9e9b7c6.zip | |
call deinit on the hashmaps introduced in the prev commit
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 4d992d25d0..ee3e05a801 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -3346,6 +3346,7 @@ static LLVMValueRef ir_render_int_to_enum(CodeGen *g, IrExecutableGen *executabl &type_enum_field->value); LLVMAddCase(switch_instr, this_tag_int_value, ok_value_block); } + occupied_tag_values.deinit(); LLVMPositionBuilderAtEnd(g->builder, bad_value_block); gen_safety_crash(g, PanicMsgIdBadEnumValue); @@ -5084,6 +5085,7 @@ static LLVMValueRef get_enum_tag_name_function(CodeGen *g, ZigType *enum_type) { LLVMPositionBuilderAtEnd(g->builder, return_block); LLVMBuildRet(g->builder, slice_global); } + occupied_tag_values.deinit(); LLVMPositionBuilderAtEnd(g->builder, bad_value_block); if (g->build_mode == BuildModeDebug || g->build_mode == BuildModeSafeRelease) { |
