@@ -30,7 +30,7 @@ Constraint::Constraint(ConstraintKind kind, ArrayRef<Constraint *> constraints,
30
30
ConstraintLocator *locator,
31
31
SmallPtrSetImpl<TypeVariableType *> &typeVars)
32
32
: Kind(kind), HasRestriction(false ), IsActive(false ), IsDisabled(false ),
33
- RememberChoice(false ), IsFavored(false ),
33
+ IsDisabledForPerformance( false ), RememberChoice(false ), IsFavored(false ),
34
34
NumTypeVariables(typeVars.size()), Nested(constraints), Locator(locator) {
35
35
assert (kind == ConstraintKind::Disjunction);
36
36
std::uninitialized_copy (typeVars.begin (), typeVars.end (),
@@ -41,7 +41,7 @@ Constraint::Constraint(ConstraintKind Kind, Type First, Type Second,
41
41
ConstraintLocator *locator,
42
42
SmallPtrSetImpl<TypeVariableType *> &typeVars)
43
43
: Kind(Kind), HasRestriction(false ), IsActive(false ), IsDisabled(false ),
44
- RememberChoice(false ), IsFavored(false ),
44
+ IsDisabledForPerformance( false ), RememberChoice(false ), IsFavored(false ),
45
45
NumTypeVariables(typeVars.size()), Types{First, Second, Type ()},
46
46
Locator (locator) {
47
47
switch (Kind) {
@@ -110,7 +110,7 @@ Constraint::Constraint(ConstraintKind Kind, Type First, Type Second, Type Third,
110
110
ConstraintLocator *locator,
111
111
SmallPtrSetImpl<TypeVariableType *> &typeVars)
112
112
: Kind(Kind), HasRestriction(false ), IsActive(false ), IsDisabled(false ),
113
- RememberChoice(false ), IsFavored(false ),
113
+ IsDisabledForPerformance( false ), RememberChoice(false ), IsFavored(false ),
114
114
NumTypeVariables(typeVars.size()), Types{First, Second, Third},
115
115
Locator (locator) {
116
116
switch (Kind) {
@@ -168,7 +168,7 @@ Constraint::Constraint(ConstraintKind kind, Type first, Type second,
168
168
ConstraintLocator *locator,
169
169
SmallPtrSetImpl<TypeVariableType *> &typeVars)
170
170
: Kind(kind), HasRestriction(false ), IsActive(false ), IsDisabled(false ),
171
- RememberChoice(false ), IsFavored(false ),
171
+ IsDisabledForPerformance( false ), RememberChoice(false ), IsFavored(false ),
172
172
NumTypeVariables(typeVars.size()), Member{first, second, {member}, useDC},
173
173
Locator (locator) {
174
174
assert (kind == ConstraintKind::ValueMember ||
@@ -187,7 +187,7 @@ Constraint::Constraint(ConstraintKind kind, Type first, Type second,
187
187
ConstraintLocator *locator,
188
188
SmallPtrSetImpl<TypeVariableType *> &typeVars)
189
189
: Kind(kind), HasRestriction(false ), IsActive(false ), IsDisabled(false ),
190
- RememberChoice(false ), IsFavored(false ),
190
+ IsDisabledForPerformance( false ), RememberChoice(false ), IsFavored(false ),
191
191
NumTypeVariables(typeVars.size()), Locator(locator) {
192
192
Member.First = first;
193
193
Member.Second = second;
@@ -207,8 +207,8 @@ Constraint::Constraint(Type type, OverloadChoice choice, DeclContext *useDC,
207
207
ConstraintFix *fix, ConstraintLocator *locator,
208
208
SmallPtrSetImpl<TypeVariableType *> &typeVars)
209
209
: 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 ),
212
212
NumTypeVariables(typeVars.size()), Overload{type, choice, useDC},
213
213
Locator (locator) {
214
214
std::copy (typeVars.begin (), typeVars.end (), getTypeVariablesBuffer ().begin ());
@@ -219,8 +219,8 @@ Constraint::Constraint(ConstraintKind kind,
219
219
Type second, ConstraintLocator *locator,
220
220
SmallPtrSetImpl<TypeVariableType *> &typeVars)
221
221
: 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 ),
224
224
NumTypeVariables(typeVars.size()), Types{first, second, Type ()},
225
225
Locator (locator) {
226
226
assert (!first.isNull ());
@@ -232,7 +232,8 @@ Constraint::Constraint(ConstraintKind kind, ConstraintFix *fix, Type first,
232
232
Type second, ConstraintLocator *locator,
233
233
SmallPtrSetImpl<TypeVariableType *> &typeVars)
234
234
: 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 ),
236
237
NumTypeVariables(typeVars.size()), Types{first, second, Type ()},
237
238
Locator (locator) {
238
239
assert (!first.isNull ());
0 commit comments