aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/TranslationUnit.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-28 01:44:40 +0000
committerChris Lattner <sabre@nondot.org>2009-03-28 01:44:40 +0000
commited0e497efc23ac4b35481a60a80579d355335e07 (patch)
treeebc5a6d3a31713154b6adc694f9659e2f8ae9b92 /lib/AST/TranslationUnit.cpp
parent9ecd26ad19875e410e76476b36f77c47069ba04c (diff)
remove TranslationUnit::OwnsDecls, which is only set, never read.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/TranslationUnit.cpp')
-rw-r--r--lib/AST/TranslationUnit.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/AST/TranslationUnit.cpp b/lib/AST/TranslationUnit.cpp
index 95cad39f68..ed84241df4 100644
--- a/lib/AST/TranslationUnit.cpp
+++ b/lib/AST/TranslationUnit.cpp
@@ -35,10 +35,9 @@ TranslationUnit::~TranslationUnit() {
// The ASTContext object has the sole references to the IdentifierTable
// Selectors, and the Target information. Go and delete them, since
// the TranslationUnit effectively owns them.
-
- delete &(Context->Idents);
- delete &(Context->Selectors);
- delete &(Context->Target);
+ delete &Context->Idents;
+ delete &Context->Selectors;
+ delete &Context->Target;
delete Context;
}
}