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/Sema/ParseAST.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/Sema/ParseAST.cpp')
-rw-r--r-- | lib/Sema/ParseAST.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Sema/ParseAST.cpp b/lib/Sema/ParseAST.cpp index 272615cceb..ff6de25c1d 100644 --- a/lib/Sema/ParseAST.cpp +++ b/lib/Sema/ParseAST.cpp @@ -58,7 +58,6 @@ void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, // skipping something. if (ADecl) { Decl* D = static_cast<Decl*>(ADecl); - TU->AddTopLevelDecl(D); // TranslationUnit now owns the Decl. Consumer->HandleTopLevelDecl(D); } }; |