Skip to content

Commit b25c65e

Browse files
authored
Merge pull request swiftlang#38845 from xedin/fix-closure-solution-application
[CSClosure] Use rewritten expression when applying solution to a brac…
2 parents b99c2c1 + 18128ee commit b25c65e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSClosure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class ClosureConstraintApplication
181181
if (auto expr = node.dyn_cast<Expr *>()) {
182182
// Rewrite the expression.
183183
if (auto rewrittenExpr = rewriteExpr(expr))
184-
node = expr;
184+
node = rewrittenExpr;
185185
else
186186
hadError = true;
187187
} else if (auto stmt = node.dyn_cast<Stmt *>()) {

0 commit comments

Comments
 (0)