File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2394,7 +2394,7 @@ class ConstraintSystem {
2394
2394
2395
2395
// / For locators associated with call expressions, the trailing closure
2396
2396
// / matching rule and parameter bindings that were applied.
2397
- std::vector<std::pair< ConstraintLocator *, MatchCallArgumentResult> >
2397
+ llvm::MapVector< ConstraintLocator *, MatchCallArgumentResult>
2398
2398
argumentMatchingChoices;
2399
2399
2400
2400
// / 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) {
11566
11566
void ConstraintSystem::recordMatchCallArgumentResult(
11567
11567
ConstraintLocator *locator, MatchCallArgumentResult result) {
11568
11568
assert(locator->isLastElement<LocatorPathElt::ApplyArgument>());
11569
- argumentMatchingChoices.push_back ({locator, result});
11569
+ argumentMatchingChoices.insert ({locator, result});
11570
11570
}
11571
11571
11572
11572
ConstraintSystem::SolutionKind ConstraintSystem::simplifyFixConstraint(
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ void ConstraintSystem::applySolution(const Solution &solution) {
245
245
246
246
// Remember all of the argument/parameter matching choices we made.
247
247
for (auto &argumentMatch : solution.argumentMatchingChoices ) {
248
- argumentMatchingChoices.push_back (argumentMatch);
248
+ argumentMatchingChoices.insert (argumentMatch);
249
249
}
250
250
251
251
// Register the solution's opened types.
You can’t perform that action at this time.
0 commit comments