aboutsummaryrefslogtreecommitdiff
path: root/src/value.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-12-28 18:01:40 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-12-28 20:20:30 -0700
commit6229d37dcfec393880109c7aaed1c18d08756631 (patch)
tree53be7676398223c6f956a2566f4aca09204891b5 /src/value.zig
parentc0ae9647f9656ea47c49ffd64443b7da73aeffc7 (diff)
downloadzig-6229d37dcfec393880109c7aaed1c18d08756631.tar.gz
zig-6229d37dcfec393880109c7aaed1c18d08756631.zip
stage2: handle function dependency failures without crashing
Diffstat (limited to 'src/value.zig')
-rw-r--r--src/value.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/value.zig b/src/value.zig
index ac4f64cada..e3949ea3c4 100644
--- a/src/value.zig
+++ b/src/value.zig
@@ -1543,6 +1543,8 @@ pub const Value = extern union {
hash(slice.len, Type.usize, hasher);
},
+ // For these, hash them as hash of a pointer to the decl,
+ // combined with a hash of the byte offset from the decl.
.elem_ptr => @panic("TODO: Implement more pointer hashing cases"),
.field_ptr => @panic("TODO: Implement more pointer hashing cases"),
.eu_payload_ptr => @panic("TODO: Implement more pointer hashing cases"),