diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-20 04:25:11 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-20 04:25:11 +0000 |
commit | 00ad0ef8369ee65337ff29c8db3c1841a01102c4 (patch) | |
tree | cb0536b6c1c7f299e01ff07dec19aa1da00dd6d3 /lib/AST/Decl.cpp | |
parent | 0cba85577ae613bce5768f3089003629a46b0e7f (diff) |
Remove the TopLevelDecls from TranslationUnit, since all of those decls are owned by the ASTContext's TranslationUnitDecl. There are definitely some leaking Decls now that I'll tackle tomorrow
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62568 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r-- | lib/AST/Decl.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 9ddc62a51e..165a6c0948 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -319,7 +319,6 @@ RecordDecl::~RecordDecl() { } void RecordDecl::Destroy(ASTContext& C) { - DeclContext::DestroyDecls(C); TagDecl::Destroy(C); } |