Merge pull request #1039 from Techatrix/skip-failed-cimports

skip failed cimports on garbage collection
This commit is contained in:
Techatrix 2023-03-07 14:01:38 +00:00 committed by GitHub
commit 515a0e4727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}
}