aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/TranslationUnit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/TranslationUnit.cpp')
-rw-r--r--lib/AST/TranslationUnit.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/AST/TranslationUnit.cpp b/lib/AST/TranslationUnit.cpp
index df135edf63..57f9f4ebc8 100644
--- a/lib/AST/TranslationUnit.cpp
+++ b/lib/AST/TranslationUnit.cpp
@@ -28,15 +28,6 @@ using namespace clang;
TranslationUnit::~TranslationUnit() {
- if (OwnsMetaData && Context) {
- // 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;
- }
}
bool clang::EmitASTBitcodeBuffer(const ASTContext &Ctx,