AST: Remove GenericContext::setGenericEnvironment()

This was a transitional step before converting all callers to
store a generic signature instead of an environment.
This commit is contained in:
Slava Pestov
2019-09-05 18:17:58 -04:00
parent 0405ab5ffc
commit f292c1b240
16 changed files with 59 additions and 94 deletions

View File

@@ -142,8 +142,7 @@ static ValueDecl *deriveInitDecl(DerivedConformance &derived, Type paramType,
synthesizer(initDecl);
// Compute the interface type of the initializer.
if (auto env = parentDC->getGenericEnvironmentOfContext())
initDecl->setGenericEnvironment(env);
initDecl->setGenericSignature(parentDC->getGenericSignatureOfContext());
initDecl->computeType();
initDecl->setAccess(derived.Nominal->getFormalAccess());