aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2022-11-03 02:42:18 -0400
committerAndrew Kelley <andrew@ziglang.org>2022-11-04 00:00:10 -0400
commitcbed6bb08555222008e87cfb071adeed97b3f8a4 (patch)
treee5824a89f3f037909cfceae8fee7b8bfc765af70 /src/Module.zig
parent42755a1944f4c4a60fc7e5e66cf76e9cbdf1ce84 (diff)
downloadzig-cbed6bb08555222008e87cfb071adeed97b3f8a4.tar.gz
zig-cbed6bb08555222008e87cfb071adeed97b3f8a4.zip
Sema: make `InferredErrorSet` deterministic
Empirically, this `AutoHashMapUnmanaged` -> `AutoArrayHashMapUnmanaged` change fixes all non-determinism in `ReleaseFast` build artifacts. Closes #12183
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 2bda1707b2..6ef5389360 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -1578,7 +1578,7 @@ pub const Fn = struct {
errors: ErrorSet.NameMap = .{},
/// Other inferred error sets which this inferred error set should include.
- inferred_error_sets: std.AutoHashMapUnmanaged(*InferredErrorSet, void) = .{},
+ inferred_error_sets: std.AutoArrayHashMapUnmanaged(*InferredErrorSet, void) = .{},
/// Whether the function returned anyerror. This is true if either of
/// the dependent functions returns anyerror.