mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CSOptimizer] NFC: Adjust conformance check to use ConstraintSystem::lookupConformance
This commit is contained in:
committed by
Pavel Yaskevich
parent
957a5f4270
commit
da65333d41
@@ -314,9 +314,7 @@ static void determineBestChoicesInContext(
|
||||
return 0.01;
|
||||
|
||||
if (llvm::all_of(protocolRequirements, [&](ProtocolDecl *protocol) {
|
||||
return TypeChecker::conformsToProtocol(candidateType, protocol,
|
||||
cs.DC->getParentModule(),
|
||||
/*allowMissing=*/false);
|
||||
return bool(cs.lookupConformance(candidateType, protocol));
|
||||
}))
|
||||
return 0.7;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user