mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CS] Add locator version of findSelectedOverloadFor
This commit is contained in:
@@ -144,13 +144,7 @@ protected:
|
||||
/// by the constraint solver.
|
||||
ResolvedOverloadSetListItem *
|
||||
getResolvedOverload(ConstraintLocator *locator) const {
|
||||
auto resolvedOverload = CS.getResolvedOverloadSets();
|
||||
while (resolvedOverload) {
|
||||
if (resolvedOverload->Locator == locator)
|
||||
return resolvedOverload;
|
||||
resolvedOverload = resolvedOverload->Previous;
|
||||
}
|
||||
return nullptr;
|
||||
return CS.findSelectedOverloadFor(locator);
|
||||
}
|
||||
|
||||
/// Retrive the constraint locator for the given anchor and
|
||||
|
||||
Reference in New Issue
Block a user