File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ void codeql::extractSwiftFiles(const SwiftExtractorConfiguration& config,
180180 swift::CompilerInstance& compiler) {
181181 auto inputFiles = collectInputFilenames (compiler);
182182 std::vector<swift::ModuleDecl*> todo = {compiler.getMainModule ()};
183- std::unordered_set<swift::ModuleDecl*> processed = {};
183+ std::unordered_set<swift::ModuleDecl*> seen = {compiler. getMainModule () };
184184
185185 while (!todo.empty ()) {
186186 auto module = todo.back ();
@@ -203,10 +203,10 @@ void codeql::extractSwiftFiles(const SwiftExtractorConfiguration& config,
203203 if (!isFromSourceFile) {
204204 encounteredModules = extractDeclarations (config, compiler, *module );
205205 }
206- processed.insert (module );
207206 for (auto encountered : encounteredModules) {
208- if (processed .count (encountered) == 0 ) {
207+ if (seen .count (encountered) == 0 ) {
209208 todo.push_back (encountered);
209+ seen.insert (encountered);
210210 }
211211 }
212212 }
You can’t perform that action at this time.
0 commit comments