File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
branches/master-next/lib/AST Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3
- refs/heads/master-next: 075acb0415aca5e232d1f5df2037d992fadd764f
3
+ refs/heads/master-next: a4fc5f34f93cd80ad5ecb718d7c6b9f3e4ea2726
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
6
6
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07
Original file line number Diff line number Diff line change @@ -168,7 +168,9 @@ class ScopeCreator final {
168
168
169
169
ScopeCreator (SourceFile *SF)
170
170
: ctx(SF->getASTContext ()),
171
- sourceFileScope(new (ctx) ASTSourceFileScope(SF, this )) {}
171
+ sourceFileScope(new (ctx) ASTSourceFileScope(SF, this )) {
172
+ ctx.addDestructorCleanup (scopedNodes);
173
+ }
172
174
173
175
ScopeCreator (const ScopeCreator &) = delete; // ensure no copies
174
176
ScopeCreator (const ScopeCreator &&) = delete; // ensure no moves
@@ -660,8 +662,6 @@ class ScopeCreator final {
660
662
661
663
// Make vanilla new illegal for ASTScopes.
662
664
void *operator new (size_t bytes) = delete ;
663
- // Need this because have virtual destructors
664
- void operator delete (void *data) {}
665
665
666
666
// Only allow allocation of scopes using the allocator of a particular source
667
667
// file.
You can’t perform that action at this time.
0 commit comments