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:
Gwen Mittertreiner
2019-05-07 17:26:34 -07:00
parent 3658b6c786
commit 06ac6f4753

View File

@@ -5568,8 +5568,8 @@ void CodeCompletionCallbacksImpl::doneParsing() {
TheModule->forAllVisibleModules(AccessPath, handleImport);
}
}
Lookup.RequestedCachedResults.clear();
}
Lookup.RequestedCachedResults.clear();
CompletionContext.typeContextKind = Lookup.typeContextKind();