mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #64525 from beccadax/checkmate-ii
Re-merge #63668: Improve @objcImplementation member checking
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user