@@ -30,7 +30,7 @@ Constraint::Constraint(ConstraintKind kind, ArrayRef<Constraint *> constraints,
3030 ConstraintLocator *locator,
3131 SmallPtrSetImpl<TypeVariableType *> &typeVars)
3232 : Kind(kind), HasRestriction(false ), IsActive(false ), IsDisabled(false ),
33- RememberChoice(false ), IsFavored(false ),
33+ IsDisabledForPerformance( false ), RememberChoice(false ), IsFavored(false ),
3434 NumTypeVariables(typeVars.size()), Nested(constraints), Locator(locator) {
3535 assert (kind == ConstraintKind::Disjunction);
3636 std::uninitialized_copy (typeVars.begin (), typeVars.end (),
@@ -41,7 +41,7 @@ Constraint::Constraint(ConstraintKind Kind, Type First, Type Second,
4141 ConstraintLocator *locator,
4242 SmallPtrSetImpl<TypeVariableType *> &typeVars)
4343 : Kind(Kind), HasRestriction(false ), IsActive(false ), IsDisabled(false ),
44- RememberChoice(false ), IsFavored(false ),
44+ IsDisabledForPerformance( false ), RememberChoice(false ), IsFavored(false ),
4545 NumTypeVariables(typeVars.size()), Types{First, Second, Type ()},
4646 Locator (locator) {
4747 switch (Kind) {
@@ -110,7 +110,7 @@ Constraint::Constraint(ConstraintKind Kind, Type First, Type Second, Type Third,
110110 ConstraintLocator *locator,
111111 SmallPtrSetImpl<TypeVariableType *> &typeVars)
112112 : Kind(Kind), HasRestriction(false ), IsActive(false ), IsDisabled(false ),
113- RememberChoice(false ), IsFavored(false ),
113+ IsDisabledForPerformance( false ), RememberChoice(false ), IsFavored(false ),
114114 NumTypeVariables(typeVars.size()), Types{First, Second, Third},
115115 Locator (locator) {
116116 switch (Kind) {
@@ -168,7 +168,7 @@ Constraint::Constraint(ConstraintKind kind, Type first, Type second,
168168 ConstraintLocator *locator,
169169 SmallPtrSetImpl<TypeVariableType *> &typeVars)
170170 : Kind(kind), HasRestriction(false ), IsActive(false ), IsDisabled(false ),
171- RememberChoice(false ), IsFavored(false ),
171+ IsDisabledForPerformance( false ), RememberChoice(false ), IsFavored(false ),
172172 NumTypeVariables(typeVars.size()), Member{first, second, {member}, useDC},
173173 Locator (locator) {
174174 assert (kind == ConstraintKind::ValueMember ||
@@ -187,7 +187,7 @@ Constraint::Constraint(ConstraintKind kind, Type first, Type second,
187187 ConstraintLocator *locator,
188188 SmallPtrSetImpl<TypeVariableType *> &typeVars)
189189 : Kind(kind), HasRestriction(false ), IsActive(false ), IsDisabled(false ),
190- RememberChoice(false ), IsFavored(false ),
190+ IsDisabledForPerformance( false ), RememberChoice(false ), IsFavored(false ),
191191 NumTypeVariables(typeVars.size()), Locator(locator) {
192192 Member.First = first;
193193 Member.Second = second;
@@ -207,8 +207,8 @@ Constraint::Constraint(Type type, OverloadChoice choice, DeclContext *useDC,
207207 ConstraintFix *fix, ConstraintLocator *locator,
208208 SmallPtrSetImpl<TypeVariableType *> &typeVars)
209209 : Kind(ConstraintKind::BindOverload), TheFix(fix), HasRestriction(false ),
210- IsActive(false ), IsDisabled(bool (fix)), RememberChoice (false ),
211- IsFavored(false ),
210+ IsActive(false ), IsDisabled(bool (fix)), IsDisabledForPerformance (false ),
211+ RememberChoice( false ), IsFavored(false ),
212212 NumTypeVariables(typeVars.size()), Overload{type, choice, useDC},
213213 Locator (locator) {
214214 std::copy (typeVars.begin (), typeVars.end (), getTypeVariablesBuffer ().begin ());
@@ -219,8 +219,8 @@ Constraint::Constraint(ConstraintKind kind,
219219 Type second, ConstraintLocator *locator,
220220 SmallPtrSetImpl<TypeVariableType *> &typeVars)
221221 : Kind(kind), Restriction(restriction), HasRestriction(true ),
222- IsActive(false ), IsDisabled(false ), RememberChoice (false ),
223- IsFavored(false ),
222+ IsActive(false ), IsDisabled(false ), IsDisabledForPerformance (false ),
223+ RememberChoice( false ), IsFavored(false ),
224224 NumTypeVariables(typeVars.size()), Types{first, second, Type ()},
225225 Locator (locator) {
226226 assert (!first.isNull ());
@@ -232,7 +232,8 @@ Constraint::Constraint(ConstraintKind kind, ConstraintFix *fix, Type first,
232232 Type second, ConstraintLocator *locator,
233233 SmallPtrSetImpl<TypeVariableType *> &typeVars)
234234 : Kind(kind), TheFix(fix), HasRestriction(false ), IsActive(false ),
235- IsDisabled(false ), RememberChoice(false ), IsFavored(false ),
235+ IsDisabled(false ), IsDisabledForPerformance(false ), RememberChoice(false ),
236+ IsFavored(false ),
236237 NumTypeVariables(typeVars.size()), Types{first, second, Type ()},
237238 Locator (locator) {
238239 assert (!first.isNull ());
0 commit comments