mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Remove redundant call to getASTContext()
This commit is contained in:
@@ -5875,7 +5875,7 @@ ASTContext::getOpenedExistentialSignature(Type type, GenericSignature parentSig)
|
|||||||
return found->second;
|
return found->second;
|
||||||
|
|
||||||
auto genericParam = OpenedArchetypeType::getSelfInterfaceTypeFromContext(
|
auto genericParam = OpenedArchetypeType::getSelfInterfaceTypeFromContext(
|
||||||
canParentSig, type->getASTContext())
|
canParentSig, *this)
|
||||||
->castTo<GenericTypeParamType>();
|
->castTo<GenericTypeParamType>();
|
||||||
Requirement requirement(RequirementKind::Conformance, genericParam,
|
Requirement requirement(RequirementKind::Conformance, genericParam,
|
||||||
constraint);
|
constraint);
|
||||||
|
|||||||
Reference in New Issue
Block a user