From 58b14d01aeb919989d1750a8894350a07fd4e844 Mon Sep 17 00:00:00 2001 From: jacob gw Date: Fri, 26 Feb 2021 09:56:16 -0500 Subject: stage2: remove value field from error This saves memory and from what I have heard allows threading to be easier. --- src/value.zig | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/value.zig') 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, }, }; -- cgit v1.2.3