From 3427ab08e5f4adf08abb0620e6cb567e6c09bcb2 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 24 Apr 2014 03:31:27 +0000 Subject: [PATCH] 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 --- lib/Frontend/FrontendAction.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.40.0