mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Properly Iterate Through RequestedCachedResults
Clearing the cache and the end of the for loop invalidates the interator and prevents iterating through the rest of the vector. This should be cleared after we're done iterating.
This commit is contained in:
@@ -5568,8 +5568,8 @@ void CodeCompletionCallbacksImpl::doneParsing() {
|
||||
TheModule->forAllVisibleModules(AccessPath, handleImport);
|
||||
}
|
||||
}
|
||||
Lookup.RequestedCachedResults.clear();
|
||||
}
|
||||
Lookup.RequestedCachedResults.clear();
|
||||
|
||||
CompletionContext.typeContextKind = Lookup.typeContextKind();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user