Merge pull request #25721 from theblixguy/fix/SR-10992

[ConstraintSystem] Fix crash on function conversion reliant on conditional conformance
This commit is contained in:
Pavel Yaskevich
2019-06-24 16:52:35 -07:00
committed by GitHub
8 changed files with 48 additions and 12 deletions

View File

@@ -374,6 +374,12 @@ getAlternativeLiteralTypes(KnownProtocolKind kind) {
return *AlternativeLiteralTypes[index];
}
ConstraintLocator *ConstraintSystem::getConstraintLocator(
Expr *anchor, ArrayRef<ConstraintLocator::PathElement> path) {
auto summaryFlags = ConstraintLocator::getSummaryFlagsForPath(path);
return getConstraintLocator(anchor, path, summaryFlags);
}
ConstraintLocator *ConstraintSystem::getConstraintLocator(
Expr *anchor,
ArrayRef<ConstraintLocator::PathElement> path,