mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Improve the type checker to create implicit DestructorDecls, tighten the assertion in ImplicitReturnLocation::getImplicitReturnLoc(), and add a verifier check that a class in a type checked AST always has exactly one destructor. SILGen used to generate a destructor if the class does not have a DestructorDecl. SILGen used to put the ClassDecl inside the SILLocation for the destructor SIL code. This is not a very clean solution: in this case ImplicitReturnLocation SILLocations contain ClassDecl, which is surprising. rdar://14970972 Implicit destructors should have AST nodes Swift SVN r8498
14 KiB
14 KiB