We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ForEachStmt.iteratorVar
1 parent a4f7981 commit a82d37eCopy full SHA for a82d37e
swift/extractor/translators/StmtTranslator.cpp
@@ -74,7 +74,7 @@ codeql::ForEachStmt StmtTranslator::translateForEachStmt(const swift::ForEachStm
74
fillLabeledStmt(stmt, entry);
75
entry.body = dispatcher.fetchLabel(stmt.getBody());
76
entry.pattern = dispatcher.fetchLabel(stmt.getPattern());
77
- entry.iteratorVar = dispatcher.fetchLabel(stmt.getIteratorVar());
+ entry.iteratorVar = dispatcher.fetchOptionalLabel(stmt.getIteratorVar());
78
entry.where = dispatcher.fetchOptionalLabel(stmt.getWhere());
79
entry.nextCall = dispatcher.fetchOptionalLabel(stmt.getNextCall());
80
auto add_variable = [&](swift::VarDecl* var) {
0 commit comments