aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2025-09-21 23:14:28 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2025-10-02 17:44:52 -0400
commite1f3fc6ce289502cde1e52fa946476ff8e3bcaac (patch)
tree42231ed7f2348c3c19b495bf8d4eac3acbfce21b /src/InternPool.zig
parentd5f09f56e0327685dfcaeb889efd9d6a26461886 (diff)
downloadzig-e1f3fc6ce289502cde1e52fa946476ff8e3bcaac.tar.gz
zig-e1f3fc6ce289502cde1e52fa946476ff8e3bcaac.zip
Coff2: create a new linker from scratch
Diffstat (limited to 'src/InternPool.zig')
-rw-r--r--src/InternPool.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig
index e19fc075ee..5e2d8c4b5c 100644
--- a/src/InternPool.zig
+++ b/src/InternPool.zig
@@ -11919,10 +11919,10 @@ pub fn getString(ip: *InternPool, key: []const u8) OptionalNullTerminatedString
var map_index = hash;
while (true) : (map_index += 1) {
map_index &= map_mask;
- const entry = map.at(map_index);
- const index = entry.acquire().unwrap() orelse return null;
+ const entry = &map.entries[map_index];
+ const index = entry.value.unwrap() orelse return .none;
if (entry.hash != hash) continue;
- if (index.eqlSlice(key, ip)) return index;
+ if (index.eqlSlice(key, ip)) return index.toOptional();
}
}