Skip to content

Commit 51c04e4

Browse files
authored
Merge pull request #9133 from rudkx/let-the-type-checker-do-its-job-again
2 parents f856766 + de10c41 commit 51c04e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/DerivedConformanceEquatableHashable.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,10 @@ static void deriveBodyEquatable_enum_eq(AbstractFunctionDecl *eqDecl) {
173173
fnType);
174174
}
175175

176-
auto tType = fnType.getInput();
177176
TupleExpr *abTuple = TupleExpr::create(C, SourceLoc(), { aIndex, bIndex },
178177
{ }, { }, SourceLoc(),
179178
/*HasTrailingClosure*/ false,
180-
/*Implicit*/ true, tType);
179+
/*Implicit*/ true);
181180

182181
auto *cmpExpr = new (C) BinaryExpr(cmpFuncExpr, abTuple, /*implicit*/ true);
183182
statements.push_back(new (C) ReturnStmt(SourceLoc(), cmpExpr));

0 commit comments

Comments
 (0)