diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-05-21 05:33:10 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-05-21 05:33:10 +0000 |
commit | 5f1adf8fb4b41988a8715492cc97c62873d25969 (patch) | |
tree | 4933042e6065e9a0caa4df00a34ffb2e2b6b673b /Driver/SerializationTest.cpp | |
parent | b0c0554bd62689f48a1c42fc46c78c531cdb3cbf (diff) |
Fix the destruction "properly" in the sense that we actually destroy the
ASTs. This is a hack, but I haven't considered how we really
want to do this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/SerializationTest.cpp')
-rw-r--r-- | Driver/SerializationTest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Driver/SerializationTest.cpp b/Driver/SerializationTest.cpp index 6e9309dc28..5f7b94fca4 100644 --- a/Driver/SerializationTest.cpp +++ b/Driver/SerializationTest.cpp @@ -44,7 +44,10 @@ public: ~SerializationTest(); virtual void Initialize(ASTContext& context) { - if (!TU) TU.reset(new TranslationUnit(context, lopts)); + if (!TU) { + TU.reset(new TranslationUnit(context, lopts)); + TU->SetOwnsDecls(false); + } } virtual void HandleTopLevelDecl(Decl *D) { |