Skip to content

Commit 3c6ec7f

Browse files
committed
[CodeCompletion] Remove the last use of ReusePrecheckedType.
Now that operator code completion uses opaque placeholder exprs, there's no need to pass the flag to use prechecked types in the constraint system.
1 parent 5901cd1 commit 3c6ec7f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/TypeCheckCodeCompletion.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,10 @@ getTypeOfCompletionOperatorImpl(DeclContext *DC, Expr *expr,
401401
PrettyStackTraceExpr stackTrace(Context, "type-checking", expr);
402402

403403
expr = expr->walk(SanitizeExpr(Context,
404-
/*shouldReusePrecheckedType=*/true));
404+
/*shouldReusePrecheckedType=*/false));
405405

406406
ConstraintSystemOptions options;
407407
options |= ConstraintSystemFlags::SuppressDiagnostics;
408-
options |= ConstraintSystemFlags::ReusePrecheckedType;
409408
options |= ConstraintSystemFlags::LeaveClosureBodyUnchecked;
410409

411410
// Construct a constraint system from this expression.

0 commit comments

Comments
 (0)