Sema: Remove some unnecessary calls to getCanonicalType()

This commit is contained in:
Slava Pestov
2017-01-07 15:47:27 -08:00
parent 844765b2fc
commit 7731d4c6cb
16 changed files with 53 additions and 67 deletions

View File

@@ -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);