Skip to content

[AST] static_assert that Decls, Stmts, and Exprs don't need cleanup #19667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2018

Conversation

jrose-apple
Copy link
Contributor

These types are all allocated on the ASTContext's BumpPtrAllocator, and by default their destructors are never called. (ModuleDecl is the exception; it registers its destructor with the ASTContext on construction.)

No functionality change.

These types are all allocated on the ASTContext's BumpPtrAllocator,
and by default their destructors are never called. (ModuleDecl is the
exception; it registers its destructor with the ASTContext on
construction.)

No functionality change.
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

Copy link
Member

@rintaro rintaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious how about Pattern, TypeRepr, and TypeBases?

@jrose-apple
Copy link
Contributor Author

Good point, those all follow these rules too. I should probably just look at everything ASTWalker can visit.

@jrose-apple jrose-apple merged commit c22711a into swiftlang:master Oct 2, 2018
@jrose-apple jrose-apple deleted the squeaky-clean branch October 2, 2018 17:42
modelorganism pushed a commit to modelorganism/swift that referenced this pull request Oct 11, 2018
…wiftlang#19667)

These types are all allocated on the ASTContext's BumpPtrAllocator,
and by default their destructors are never called. (ModuleDecl is the
exception; it registers its destructor with the ASTContext on
construction.)

No functionality change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants