Skip to content

Commit a8cec01

Browse files
committed
[CodeCompletion] Exit early in applyResultBuilderBodyTransform after reporing solutions to code completion
1 parent 17ac201 commit a8cec01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Sema/BuilderTransform.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,6 +1744,7 @@ Optional<BraceStmt *> TypeChecker::applyResultBuilderBodyTransform(
17441744
for (const auto &solution : solutions) {
17451745
cs.getASTContext().CompletionCallback->sawSolution(solution);
17461746
}
1747+
return nullptr;
17471748
}
17481749

17491750
if (solvingFailed || solutions.size() != 1) {

0 commit comments

Comments
 (0)