Skip to content

Commit a81b7d1

Browse files
committed
[CSSolver] solveForCodeCompletion should fail if constraint generation fails
1 parent 54d2581 commit a81b7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ void ConstraintSystem::solveForCodeCompletion(
14281428

14291429
cs.shrink(expr);
14301430

1431-
if (cs.generateConstraints(expr, DC))
1431+
if (!cs.generateConstraints(expr, DC))
14321432
return;
14331433

14341434
llvm::SmallVector<Solution, 4> solutions;

0 commit comments

Comments
 (0)