File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2394,7 +2394,7 @@ class ConstraintSystem {
23942394
23952395 // / For locators associated with call expressions, the trailing closure
23962396 // / matching rule and parameter bindings that were applied.
2397- std::vector<std::pair< ConstraintLocator *, MatchCallArgumentResult> >
2397+ llvm::MapVector< ConstraintLocator *, MatchCallArgumentResult>
23982398 argumentMatchingChoices;
23992399
24002400 // / The set of implicit value conversions performed by the solver on
Original file line number Diff line number Diff line change @@ -11566,7 +11566,7 @@ void ConstraintSystem::recordAnyTypeVarAsPotentialHole(Type type) {
1156611566void ConstraintSystem::recordMatchCallArgumentResult (
1156711567 ConstraintLocator *locator, MatchCallArgumentResult result) {
1156811568 assert (locator->isLastElement <LocatorPathElt::ApplyArgument>());
11569- argumentMatchingChoices.push_back ({locator, result});
11569+ argumentMatchingChoices.insert ({locator, result});
1157011570}
1157111571
1157211572ConstraintSystem::SolutionKind ConstraintSystem::simplifyFixConstraint (
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ void ConstraintSystem::applySolution(const Solution &solution) {
245245
246246 // Remember all of the argument/parameter matching choices we made.
247247 for (auto &argumentMatch : solution.argumentMatchingChoices ) {
248- argumentMatchingChoices.push_back (argumentMatch);
248+ argumentMatchingChoices.insert (argumentMatch);
249249 }
250250
251251 // Register the solution's opened types.
You can’t perform that action at this time.
0 commit comments