aboutsummaryrefslogtreecommitdiff
path: root/src/link/table_section.zig
diff options
context:
space:
mode:
authorMeghan Denny <hello@nektro.net>2025-02-09 20:21:31 -0800
committerGitHub <noreply@github.com>2025-02-10 04:21:31 +0000
commit91424823724de866776c8b6a999ea45f1ca9d374 (patch)
tree43c794431c7e5d83dc434117cca5884d8e01c672 /src/link/table_section.zig
parent75df7e502c05e7e6a9b00a5a28854ae4a1aa8ea6 (diff)
downloadzig-91424823724de866776c8b6a999ea45f1ca9d374.tar.gz
zig-91424823724de866776c8b6a999ea45f1ca9d374.zip
std.ArrayList: popOrNull() -> pop() [v2] (#22720)
Diffstat (limited to 'src/link/table_section.zig')
-rw-r--r--src/link/table_section.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/table_section.zig b/src/link/table_section.zig
index f3762b38dd..c579198c91 100644
--- a/src/link/table_section.zig
+++ b/src/link/table_section.zig
@@ -13,7 +13,7 @@ pub fn TableSection(comptime Entry: type) type {
pub fn allocateEntry(self: *Self, allocator: Allocator, entry: Entry) Allocator.Error!Index {
try self.entries.ensureUnusedCapacity(allocator, 1);
const index = blk: {
- if (self.free_list.popOrNull()) |index| {
+ if (self.free_list.pop()) |index| {
log.debug(" (reusing entry index {d})", .{index});
break :blk index;
} else {