Merge pull request #64525 from beccadax/checkmate-ii

Re-merge #63668: Improve @objcImplementation member checking
This commit is contained in:
swift-ci
2023-03-28 00:56:44 -07:00
committed by GitHub
20 changed files with 1053 additions and 144 deletions

View File

@@ -5350,8 +5350,10 @@ synthesizeEmptyFunctionBody(AbstractFunctionDecl *afd, void *context) {
DestructorDecl *
GetDestructorRequest::evaluate(Evaluator &evaluator, ClassDecl *CD) const {
auto dc = CD->getImplementationContext();
auto &ctx = CD->getASTContext();
auto *DD = new (ctx) DestructorDecl(CD->getLoc(), CD);
auto *DD = new (ctx) DestructorDecl(CD->getLoc(), dc->getAsGenericContext());
DD->setImplicit();