Convert DeclContext Parameters to their Associated Generic Signatures Instead

This commit is contained in:
Robert Widmann
2022-03-07 22:53:56 -08:00
parent 01d9d61cc8
commit ab44a07045
26 changed files with 148 additions and 111 deletions

View File

@@ -5642,7 +5642,7 @@ public:
if (!existentialTypeOrError)
return existentialTypeOrError.takeError();
auto env = GenericEnvironment::forOpenedExistential(
auto env = GenericEnvironment::forOpenedArchetypeSignature(
existentialTypeOrError.get(), sigOrError.get(), UUID::fromTime());
return env->mapTypeIntoContext(interfaceTypeOrError.get())
->castTo<OpenedArchetypeType>();