File tree Expand file tree Collapse file tree 1 file changed +3
-20
lines changed Expand file tree Collapse file tree 1 file changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -3136,26 +3136,9 @@ class ConstraintSystem {
3136
3136
return true ;
3137
3137
}
3138
3138
3139
- if (!getASTContext ().isSwiftVersion3 ()) {
3140
- if (CountScopes < TypeCounter)
3141
- return false ;
3142
-
3143
- // If we haven't explored a relatively large number of possibilities
3144
- // yet, continue.
3145
- if (CountScopes <= 16 * 1024 )
3146
- return false ;
3147
-
3148
- // Clearly exponential
3149
- if (TypeCounter < 32 && CountScopes > (1U << TypeCounter))
3150
- return true ;
3151
-
3152
- // Bail out once we've looked at a really large number of
3153
- // choices.
3154
- if (CountScopes > TC.Context .LangOpts .SolverBindingThreshold )
3155
- return true ;
3156
- }
3157
-
3158
- return false ;
3139
+ // Bail out once we've looked at a really large number of
3140
+ // choices.
3141
+ return CountScopes > TC.Context .LangOpts .SolverBindingThreshold ;
3159
3142
}
3160
3143
3161
3144
LLVM_ATTRIBUTE_DEPRECATED (
You can’t perform that action at this time.
0 commit comments