mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CSSolver] solveForCodeCompletion should fail if constraint generation fails
This commit is contained in:
@@ -1428,7 +1428,7 @@ void ConstraintSystem::solveForCodeCompletion(
|
||||
|
||||
cs.shrink(expr);
|
||||
|
||||
if (cs.generateConstraints(expr, DC))
|
||||
if (!cs.generateConstraints(expr, DC))
|
||||
return;
|
||||
|
||||
llvm::SmallVector<Solution, 4> solutions;
|
||||
|
||||
Reference in New Issue
Block a user