aboutsummaryrefslogtreecommitdiff
path: root/src/arch/wasm/CodeGen.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-05-28 02:41:22 -0400
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:47:56 -0700
commit3b6ca1d35b950d67fff5964f0063dadf01f30e2d (patch)
tree953815632535b965c7d32318ca515d8926cf4c4b /src/arch/wasm/CodeGen.zig
parentd40b83de45db27c8c3e7a1f2ccf892563df43637 (diff)
downloadzig-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.zig3
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,
}
}