aboutsummaryrefslogtreecommitdiff
path: root/src/value.zig
diff options
context:
space:
mode:
authorjacob gw <jacoblevgw@gmail.com>2021-02-26 09:56:16 -0500
committerVeikka Tuominen <git@vexu.eu>2021-02-28 22:01:13 +0200
commit58b14d01aeb919989d1750a8894350a07fd4e844 (patch)
tree574dbe169aa0fba72b8901333a82c9e3e5d11c51 /src/value.zig
parent1f17221bc4e17bcd7116fe12ab3f939346179799 (diff)
downloadzig-58b14d01aeb919989d1750a8894350a07fd4e844.tar.gz
zig-58b14d01aeb919989d1750a8894350a07fd4e844.zip
stage2: remove value field from error
This saves memory and from what I have heard allows threading to be easier.
Diffstat (limited to 'src/value.zig')
-rw-r--r--src/value.zig2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/value.zig b/src/value.zig
index 0a6a48dbf7..ae94e4b424 100644
--- a/src/value.zig
+++ b/src/value.zig
@@ -1561,7 +1561,6 @@ pub const Value = extern union {
.@"error" => {
const payload = self.castTag(.@"error").?.data;
hasher.update(payload.name);
- std.hash.autoHash(&hasher, payload.value);
},
.error_union => {
const payload = self.castTag(.error_union).?.data;
@@ -2157,7 +2156,6 @@ pub const Value = extern union {
/// duration of the compilation.
/// TODO revisit this when we have the concept of the error tag type
name: []const u8,
- value: u16,
},
};