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 @@ -2399,7 +2399,7 @@ class ConstraintSystem {
2399
2399
2400
2400
// / The set of implicit value conversions performed by the solver on
2401
2401
// / a current path to reach a solution.
2402
- SmallVector<std::pair <ConstraintLocator *, ConversionRestrictionKind> , 2 >
2402
+ llvm::SmallMapVector <ConstraintLocator *, ConversionRestrictionKind, 2 >
2403
2403
ImplicitValueConversions;
2404
2404
2405
2405
// / The worklist of "active" constraints that should be revisited
Original file line number Diff line number Diff line change @@ -11322,7 +11322,7 @@ ConstraintSystem::simplifyRestrictedConstraintImpl(
11322
11322
FunctionType::get ({FunctionType::Param (type1)}, type2),
11323
11323
memberTy, applicationLoc);
11324
11324
11325
- ImplicitValueConversions.push_back (
11325
+ ImplicitValueConversions.insert (
11326
11326
{getConstraintLocator (locator), restriction});
11327
11327
return SolutionKind::Solved;
11328
11328
}
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ void ConstraintSystem::applySolution(const Solution &solution) {
305
305
}
306
306
307
307
for (auto &valueConversion : solution.ImplicitValueConversions ) {
308
- ImplicitValueConversions.push_back (valueConversion);
308
+ ImplicitValueConversions.insert (valueConversion);
309
309
}
310
310
311
311
// Register the argument lists.
You can’t perform that action at this time.
0 commit comments