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.
1 parent 9196939 commit a245d00Copy full SHA for a245d00
swift/extractor/translators/StmtTranslator.cpp
@@ -133,9 +133,8 @@ codeql::DoCatchStmt StmtTranslator::translateDoCatchStmt(const swift::DoCatchStm
133
134
codeql::CaseStmt StmtTranslator::translateCaseStmt(const swift::CaseStmt& stmt) {
135
auto entry = dispatcher.createEntry(stmt);
136
- auto labels = stmt.getCaseLabelItems();
137
entry.body = dispatcher.fetchLabel(stmt.getBody());
138
- entry.labels = dispatcher.fetchRepeatedLabels(labels);
+ entry.labels = dispatcher.fetchRepeatedLabels(stmt.getCaseLabelItems());
139
entry.variables = dispatcher.fetchRepeatedLabels(stmt.getCaseBodyVariablesOrEmptyArray());
140
return entry;
141
}
0 commit comments