From: Nico Weber Date: Thu, 24 Apr 2014 03:31:27 +0000 (+0000) Subject: Revert the "don't leak" part of r207065, looks like the bots don't like it :-/ X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3427ab08e5f4adf08abb0620e6cb567e6c09bcb2;p=clang Revert the "don't leak" part of r207065, looks like the bots don't like it :-/ http://bb.pgr.jp/builders/cmake-clang-x86_64-linux/builds/22506 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207070 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/FrontendAction.cpp b/lib/Frontend/FrontendAction.cpp index 4bb539c88a..8b05849f90 100644 --- a/lib/Frontend/FrontendAction.cpp +++ b/lib/Frontend/FrontendAction.cpp @@ -443,7 +443,8 @@ void FrontendAction::EndSourceFile() { // FrontendAction. CI.clearOutputFiles(/*EraseFiles=*/shouldEraseOutputFiles()); - if (DisableFree && isCurrentFileAST()) { + // FIXME: Only do this if DisableFree is set. + if (isCurrentFileAST()) { CI.resetAndLeakSema(); CI.resetAndLeakASTContext(); CI.resetAndLeakPreprocessor();