aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-11-15 16:50:20 +0200
committerVeikka Tuominen <git@vexu.eu>2022-11-16 01:12:28 +0200
commitfb09093d95f2dc9bf454ba0d1d489316311adffc (patch)
treed033652857b160b2862c935fbd498a9f5aa7dfec /src/Compilation.zig
parent2cfa7165e715321dffea21380d4fde0dd5079925 (diff)
downloadzig-fb09093d95f2dc9bf454ba0d1d489316311adffc.tar.gz
zig-fb09093d95f2dc9bf454ba0d1d489316311adffc.zip
Module: call `ensureDeclAnalyzed` on `builtin.test_functions`
Previously the compiler would crash on branching on undefined values if you tried using `zig test` with a freestanding target since there was no start code referencing `builtin.test_functions`. Closes #12554
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index 35be4e86cf..73db9f5e97 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -2361,7 +2361,7 @@ pub fn update(comp: *Compilation) !void {
// The `test_functions` decl has been intentionally postponed until now,
// at which point we must populate it with the list of test functions that
// have been discovered and not filtered out.
- try module.populateTestFunctions();
+ try module.populateTestFunctions(main_progress_node);
}
// Process the deletion set. We use a while loop here because the