@@ -1530,10 +1530,6 @@ enum class ConstraintSystemFlags {
15301530 // / left in-tact.
15311531 AllowUnresolvedTypeVariables = 0x04 ,
15321532
1533- // / If set, constraint system always reuses type of pre-typechecked
1534- // / expression, and doesn't dig into its subexpressions.
1535- ReusePrecheckedType = 0x08 ,
1536-
15371533 // / If set, verbose output is enabled for this constraint system.
15381534 // /
15391535 // / Note that this flag is automatically applied to all constraint systems,
@@ -1542,16 +1538,16 @@ enum class ConstraintSystemFlags {
15421538 // / \c DebugConstraintSolverAttempt. Finally, it can also be automatically
15431539 // / enabled for a pre-configured set of expressions on line numbers by setting
15441540 // / \c DebugConstraintSolverOnLines.
1545- DebugConstraints = 0x10 ,
1541+ DebugConstraints = 0x08 ,
15461542
15471543 // / Don't try to type check closure bodies, and leave them unchecked. This is
15481544 // / used for source tooling functionalities.
1549- LeaveClosureBodyUnchecked = 0x20 ,
1545+ LeaveClosureBodyUnchecked = 0x10 ,
15501546
15511547 // / If set, we are solving specifically to determine the type of a
15521548 // / CodeCompletionExpr, and should continue in the presence of errors wherever
15531549 // / possible.
1554- ForCodeCompletion = 0x40 ,
1550+ ForCodeCompletion = 0x20 ,
15551551
15561552 // / Include Clang function types when checking equality for function types.
15571553 // /
@@ -1562,10 +1558,10 @@ enum class ConstraintSystemFlags {
15621558 // / should be treated as semantically different, as they may have different
15631559 // / calling conventions, say due to Clang attributes such as
15641560 // / `__attribute__((ns_consumed))`.
1565- UseClangFunctionTypes = 0x80 ,
1561+ UseClangFunctionTypes = 0x40 ,
15661562
15671563 // / When set, ignore async/sync mismatches
1568- IgnoreAsyncSyncMismatch = 0x100 ,
1564+ IgnoreAsyncSyncMismatch = 0x80 ,
15691565};
15701566
15711567// / Options that affect the constraint system as a whole.
@@ -3792,10 +3788,6 @@ class ConstraintSystem {
37923788 return Options.contains (ConstraintSystemFlags::SuppressDiagnostics);
37933789 }
37943790
3795- bool shouldReusePrecheckedType () const {
3796- return Options.contains (ConstraintSystemFlags::ReusePrecheckedType);
3797- }
3798-
37993791 // / Whether we are solving to determine the possible types of a
38003792 // / \c CodeCompletionExpr.
38013793 bool isForCodeCompletion () const {
0 commit comments