diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-05-28 02:41:22 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:47:56 -0700 |
| commit | 3b6ca1d35b950d67fff5964f0063dadf01f30e2d (patch) | |
| tree | 953815632535b965c7d32318ca515d8926cf4c4b /src/arch/wasm/CodeGen.zig | |
| parent | d40b83de45db27c8c3e7a1f2ccf892563df43637 (diff) | |
| download | zig-3b6ca1d35b950d67fff5964f0063dadf01f30e2d.tar.gz zig-3b6ca1d35b950d67fff5964f0063dadf01f30e2d.zip | |
Module: move memoized data to the intern pool
This avoids memory management bugs with the previous implementation.
Diffstat (limited to 'src/arch/wasm/CodeGen.zig')
| -rw-r--r-- | src/arch/wasm/CodeGen.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig index 91743e0d64..d2d54a69c5 100644 --- a/src/arch/wasm/CodeGen.zig +++ b/src/arch/wasm/CodeGen.zig @@ -3254,6 +3254,9 @@ fn lowerConstant(func: *CodeGen, arg_val: Value, ty: Type) InnerError!WValue { else => unreachable, }, .un => return func.fail("Wasm TODO: LowerConstant for {}", .{ty.fmt(mod)}), + .memoized_decl, + .memoized_call, + => unreachable, } } |
