@@ -22,7 +22,7 @@ using namespace swift;
2222using namespace constraints ;
2323
2424void ConstraintSystem::PotentialBindings::inferTransitiveBindings (
25- const ConstraintSystem &cs, llvm::SmallPtrSetImpl<CanType> &existingTypes,
25+ ConstraintSystem &cs, llvm::SmallPtrSetImpl<CanType> &existingTypes,
2626 const llvm::SmallDenseMap<TypeVariableType *,
2727 ConstraintSystem::PotentialBindings>
2828 &inferredBindings) {
@@ -144,7 +144,7 @@ isUnviableDefaultType(Type defaultType,
144144}
145145
146146void ConstraintSystem::PotentialBindings::inferDefaultTypes (
147- const ConstraintSystem &cs, llvm::SmallPtrSetImpl<CanType> &existingTypes) {
147+ ConstraintSystem &cs, llvm::SmallPtrSetImpl<CanType> &existingTypes) {
148148 auto isDirectRequirement = [&](Constraint *constraint) -> bool {
149149 if (auto *typeVar = constraint->getFirstType ()->getAs <TypeVariableType>()) {
150150 auto *repr = cs.getRepresentative (typeVar);
@@ -300,7 +300,7 @@ void ConstraintSystem::PotentialBindings::inferDefaultTypes(
300300}
301301
302302void ConstraintSystem::PotentialBindings::finalize (
303- const ConstraintSystem &cs,
303+ ConstraintSystem &cs,
304304 const llvm::SmallDenseMap<TypeVariableType *,
305305 ConstraintSystem::PotentialBindings>
306306 &inferredBindings) {
@@ -620,8 +620,7 @@ bool ConstraintSystem::PotentialBindings::favoredOverDisjunction(
620620}
621621
622622ConstraintSystem::PotentialBindings
623- ConstraintSystem::inferBindingsFor (TypeVariableType *typeVar,
624- bool finalize) const {
623+ ConstraintSystem::inferBindingsFor (TypeVariableType *typeVar, bool finalize) {
625624 assert (typeVar->getImpl ().getRepresentative (nullptr ) == typeVar &&
626625 " not a representative" );
627626 assert (!typeVar->getImpl ().getFixedType (nullptr ) && " has a fixed type" );
@@ -829,7 +828,7 @@ ConstraintSystem::getPotentialBindingForRelationalConstraint(
829828// / representative type variable, along with flags indicating whether
830829// / those types should be opened.
831830bool ConstraintSystem::PotentialBindings::infer (
832- const ConstraintSystem &cs, llvm::SmallPtrSetImpl<CanType> &exactTypes,
831+ ConstraintSystem &cs, llvm::SmallPtrSetImpl<CanType> &exactTypes,
833832 Constraint *constraint) {
834833 switch (constraint->getKind ()) {
835834 case ConstraintKind::Bind:
0 commit comments