aboutsummaryrefslogtreecommitdiff
path: root/src/Zcu/PerThread.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-08-05 16:24:28 -0700
committerGitHub <noreply@github.com>2025-08-05 16:24:28 -0700
commitd8cecffe314230f1ff42391be98622ac8098833c (patch)
tree791ccaa082bd52364d68a1aeb630747a8fa69f90 /src/Zcu/PerThread.zig
parent3914eaf3571949718bcd986ab8129b3c9f39b1d0 (diff)
parent8c11ada66caa011523e5c1019f9bb23c2db89231 (diff)
downloadzig-d8cecffe314230f1ff42391be98622ac8098833c.tar.gz
zig-d8cecffe314230f1ff42391be98622ac8098833c.zip
Merge pull request #24699 from ziglang/bounded
remove RingBuffer; remove BoundedArray; use `@memmove`
Diffstat (limited to 'src/Zcu/PerThread.zig')
-rw-r--r--src/Zcu/PerThread.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig
index de4be438f5..79ad9f14e9 100644
--- a/src/Zcu/PerThread.zig
+++ b/src/Zcu/PerThread.zig
@@ -2116,8 +2116,9 @@ pub fn computeAliveFiles(pt: Zcu.PerThread) Allocator.Error!bool {
// multi-threaded environment (where things like file indices could differ between compiler runs).
// The roots of our file liveness analysis will be the analysis roots.
- try zcu.alive_files.ensureTotalCapacity(gpa, zcu.analysis_roots.len);
- for (zcu.analysis_roots.slice()) |mod| {
+ const analysis_roots = zcu.analysisRoots();
+ try zcu.alive_files.ensureTotalCapacity(gpa, analysis_roots.len);
+ for (analysis_roots) |mod| {
const file_index = zcu.module_roots.get(mod).?.unwrap() orelse continue;
const file = zcu.fileByIndex(file_index);