mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Remove some unnecessary calls to getCanonicalType()
This commit is contained in:
@@ -954,10 +954,8 @@ void ConstraintSystem::openGeneric(
|
||||
// skip.
|
||||
if (skipProtocolSelfConstraint &&
|
||||
protoDecl == outerDC &&
|
||||
(protoDecl->getSelfInterfaceType()->getCanonicalType() ==
|
||||
req.getFirstType()->getCanonicalType())) {
|
||||
protoDecl->getSelfInterfaceType()->isEqual(req.getFirstType()))
|
||||
break;
|
||||
}
|
||||
|
||||
addConstraint(ConstraintKind::ConformsTo, subjectTy, proto,
|
||||
locatorPtr);
|
||||
|
||||
Reference in New Issue
Block a user