skip failed cimports on garbage collection

This commit is contained in:
Techatrix 2023-03-07 12:28:20 +01:00
parent 421a05ae5f
commit 8e6609e0f5

View File

@ -345,7 +345,7 @@ fn garbageCollectionCImports(self: *DocumentStore) error{OutOfMemory}!void {
for (self.handles.values()) |handle| {
for (handle.cimports.items(.hash)) |hash| {
const index = self.cimports.getIndex(hash).?;
const index = self.cimports.getIndex(hash) orelse continue;
reachable.set(index);
}
}