mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
stage2: fix building stage3 in release mode
Previously, comptime function calls could cause a crash in the hash function due to a lazy value depending on an unresolved type.
This commit is contained in:
1 parent
b75d86027d
commit
c9858f833c
2 files changed
+30
-3
No files matched your search
+1
-1
@@ -205,7 +205,7 @@ pub const MemoizedCall = struct {
|
||||
|
||||
// The generic function Decl is guaranteed to be the first dependency
|
||||
// of each of its instantiations.
|
||||
std.hash.autoHash(&hasher, @ptrToInt(key.func));
|
||||
std.hash.autoHash(&hasher, key.func);
|
||||
|
||||
// This logic must be kept in sync with the logic in `analyzeCall` that
|
||||
// computes the hash.
|
||||
|
||||
Reference in new issue
Block a user