Skip to content

Commit f8820d3

Browse files
committed
[Sema] Remove some outdated logic
This block of code appears to date back to the Swift 2 days when C-style for-loops were supported.
1 parent 9440fb6 commit f8820d3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/Sema/TypeCheckStmt.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,16 +1257,6 @@ static void diagnoseIgnoredLiteral(ASTContext &Ctx, LiteralExpr *LE) {
12571257
}
12581258

12591259
void TypeChecker::checkIgnoredExpr(Expr *E) {
1260-
// For parity with C, several places in the grammar accept multiple
1261-
// comma-separated expressions and then bind them together as an implicit
1262-
// tuple. Break these apart and check them separately.
1263-
if (E->isImplicit() && isa<TupleExpr>(E)) {
1264-
for (auto Elt : cast<TupleExpr>(E)->getElements()) {
1265-
checkIgnoredExpr(Elt);
1266-
}
1267-
return;
1268-
}
1269-
12701260
// Skip checking if there is no type, which presumably means there was a
12711261
// type error.
12721262
if (!E->getType()) {

0 commit comments

Comments
 (0)