mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ConstraintSystem] Convert ImplicitValueConversions to a map vector to avoid duplicates
This commit is contained in:
@@ -11322,7 +11322,7 @@ ConstraintSystem::simplifyRestrictedConstraintImpl(
|
||||
FunctionType::get({FunctionType::Param(type1)}, type2),
|
||||
memberTy, applicationLoc);
|
||||
|
||||
ImplicitValueConversions.push_back(
|
||||
ImplicitValueConversions.insert(
|
||||
{getConstraintLocator(locator), restriction});
|
||||
return SolutionKind::Solved;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user