@@ -591,14 +591,14 @@ class Solution {
591
591
ConstraintSystem &getConstraintSystem () const { return *constraintSystem; }
592
592
593
593
// / The set of type bindings.
594
- llvm::SmallDenseMap <TypeVariableType *, Type> typeBindings;
594
+ llvm::DenseMap <TypeVariableType *, Type> typeBindings;
595
595
596
596
// / The set of overload choices along with their types.
597
- llvm::SmallDenseMap <ConstraintLocator *, SelectedOverload> overloadChoices;
597
+ llvm::DenseMap <ConstraintLocator *, SelectedOverload> overloadChoices;
598
598
599
599
// / The set of constraint restrictions used to arrive at this restriction,
600
600
// / which informs constraint application.
601
- llvm::SmallDenseMap <std::pair<CanType, CanType>, ConversionRestrictionKind>
601
+ llvm::DenseMap <std::pair<CanType, CanType>, ConversionRestrictionKind>
602
602
ConstraintRestrictions;
603
603
604
604
// / The list of fixes that need to be applied to the initial expression
@@ -610,22 +610,22 @@ class Solution {
610
610
611
611
// / The set of disjunction choices used to arrive at this solution,
612
612
// / which informs constraint application.
613
- llvm::SmallDenseMap <ConstraintLocator *, unsigned > DisjunctionChoices;
613
+ llvm::DenseMap <ConstraintLocator *, unsigned > DisjunctionChoices;
614
614
615
615
// / The set of opened types for a given locator.
616
- llvm::SmallDenseMap <ConstraintLocator *, ArrayRef<OpenedType>> OpenedTypes;
616
+ llvm::DenseMap <ConstraintLocator *, ArrayRef<OpenedType>> OpenedTypes;
617
617
618
618
// / The opened existential type for a given locator.
619
- llvm::SmallDenseMap <ConstraintLocator *, OpenedArchetypeType *>
619
+ llvm::DenseMap <ConstraintLocator *, OpenedArchetypeType *>
620
620
OpenedExistentialTypes;
621
621
622
622
// / The locators of \c Defaultable constraints whose defaults were used.
623
- llvm::SmallPtrSet<ConstraintLocator *, 8 > DefaultedConstraints;
623
+ llvm::SmallPtrSet<ConstraintLocator *, 2 > DefaultedConstraints;
624
624
625
625
// / The node -> type mappings introduced by this solution.
626
626
llvm::SmallVector<std::pair<TypedNode, Type>, 8 > addedNodeTypes;
627
627
628
- llvm::SmallVector <std::pair<ConstraintLocator *, ProtocolConformanceRef>, 8 >
628
+ std::vector <std::pair<ConstraintLocator *, ProtocolConformanceRef>>
629
629
Conformances;
630
630
631
631
// / The set of closures that have been transformed by a function builder.
@@ -1042,7 +1042,7 @@ class ConstraintSystem {
1042
1042
// / solution it represents.
1043
1043
Score CurrentScore;
1044
1044
1045
- SmallVector <TypeVariableType *, 16 > TypeVariables;
1045
+ std::vector <TypeVariableType *> TypeVariables;
1046
1046
1047
1047
// / Maps expressions to types for choosing a favored overload
1048
1048
// / type in a disjunction constraint.
@@ -1075,7 +1075,7 @@ class ConstraintSystem {
1075
1075
// / there are multiple ways in which one type could convert to another, e.g.,
1076
1076
// / given class types A and B, the solver might choose either a superclass
1077
1077
// / conversion or a user-defined conversion.
1078
- SmallVector <std::tuple<Type, Type, ConversionRestrictionKind>, 32 >
1078
+ std::vector <std::tuple<Type, Type, ConversionRestrictionKind>>
1079
1079
ConstraintRestrictions;
1080
1080
1081
1081
// / The set of fixes applied to make the solution work.
@@ -1085,7 +1085,7 @@ class ConstraintSystem {
1085
1085
1086
1086
// / The set of remembered disjunction choices used to reach
1087
1087
// / the current constraint system.
1088
- SmallVector <std::pair<ConstraintLocator*, unsigned >, 32 >
1088
+ std::vector <std::pair<ConstraintLocator*, unsigned >>
1089
1089
DisjunctionChoices;
1090
1090
1091
1091
// / The worklist of "active" constraints that should be revisited
@@ -1112,7 +1112,7 @@ class ConstraintSystem {
1112
1112
// / The node -> type mappings introduced by generating constraints.
1113
1113
llvm::SmallVector<std::pair<TypedNode, Type>, 8 > addedNodeTypes;
1114
1114
1115
- SmallVector <std::pair<ConstraintLocator *, ProtocolConformanceRef>, 8 >
1115
+ std::vector <std::pair<ConstraintLocator *, ProtocolConformanceRef>>
1116
1116
CheckedConformances;
1117
1117
1118
1118
// / The set of closures that have been transformed by a function builder.
@@ -1121,7 +1121,7 @@ class ConstraintSystem {
1121
1121
1122
1122
public:
1123
1123
// / The locators of \c Defaultable constraints whose defaults were used.
1124
- SmallVector <ConstraintLocator *, 8 > DefaultedConstraints;
1124
+ std::vector <ConstraintLocator *> DefaultedConstraints;
1125
1125
1126
1126
// / A cache that stores the @dynamicCallable required methods implemented by
1127
1127
// / types.
0 commit comments