diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-08-05 16:24:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-05 16:24:28 -0700 |
| commit | d8cecffe314230f1ff42391be98622ac8098833c (patch) | |
| tree | 791ccaa082bd52364d68a1aeb630747a8fa69f90 /src/Zcu/PerThread.zig | |
| parent | 3914eaf3571949718bcd986ab8129b3c9f39b1d0 (diff) | |
| parent | 8c11ada66caa011523e5c1019f9bb23c2db89231 (diff) | |
| download | zig-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.zig | 5 |
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); |
