File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -8991,6 +8991,15 @@ ExprWalker::rewriteTarget(SolutionApplicationTarget target) {
8991
8991
8992
8992
solution.setExprTypes (resultExpr);
8993
8993
result.setExpr (resultExpr);
8994
+
8995
+ // Visit closures that have non-single expression bodies, tap expressions,
8996
+ // and possibly other types of AST nodes which could only be processed
8997
+ // after contextual expression.
8998
+ bool hadError = processDelayed ();
8999
+
9000
+ // If any of them failed to type check, bail.
9001
+ if (hadError)
9002
+ return None;
8994
9003
8995
9004
if (cs.isDebugMode ()) {
8996
9005
auto &log = llvm::errs ();
@@ -9047,15 +9056,6 @@ Optional<SolutionApplicationTarget> ConstraintSystem::applySolution(
9047
9056
if (!resultTarget)
9048
9057
return None;
9049
9058
9050
- // Visit closures that have non-single expression bodies, tap expressions,
9051
- // and possibly other types of AST nodes which could only be processed
9052
- // after contextual expression.
9053
- bool hadError = walker.processDelayed ();
9054
-
9055
- // If any of them failed to type check, bail.
9056
- if (hadError)
9057
- return None;
9058
-
9059
9059
rewriter.finalize ();
9060
9060
9061
9061
return resultTarget;
You can’t perform that action at this time.
0 commit comments