]> granicus.if.org Git - clang/commitdiff
Revert the "don't leak" part of r207065, looks like the bots don't like it :-/
authorNico Weber <nicolasweber@gmx.de>
Thu, 24 Apr 2014 03:31:27 +0000 (03:31 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 24 Apr 2014 03:31:27 +0000 (03:31 +0000)
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

index 4bb539c88a96e460a85a880011e00fbdef90cfda..8b05849f9006b1d2db57d820791a399a81203204 100644 (file)
@@ -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();