r207070 - Revert the "don't leak" part of r207065, looks like the bots don't like it :-/
Nico Weber
nicolasweber at gmx.de
Wed Apr 23 20:31:27 PDT 2014
Author: nico
Date: Wed Apr 23 22:31:27 2014
New Revision: 207070
URL: http://llvm.org/viewvc/llvm-project?rev=207070&view=rev
Log:
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
Modified:
cfe/trunk/lib/Frontend/FrontendAction.cpp
Modified: cfe/trunk/lib/Frontend/FrontendAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/FrontendAction.cpp?rev=207070&r1=207069&r2=207070&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/FrontendAction.cpp (original)
+++ cfe/trunk/lib/Frontend/FrontendAction.cpp Wed Apr 23 22:31:27 2014
@@ -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();
More information about the cfe-commits
mailing list