[cfe-commits] r165911 - /cfe/trunk/lib/Frontend/CompilerInstance.cpp

Benjamin Kramer benny.kra at googlemail.com
Sun Oct 14 12:50:53 PDT 2012


Author: d0k
Date: Sun Oct 14 14:50:53 2012
New Revision: 165911

URL: http://llvm.org/viewvc/llvm-project?rev=165911&view=rev
Log:
Make sure temporary files are deleted when recovering from a crash when compiling modules.

Modified:
    cfe/trunk/lib/Frontend/CompilerInstance.cpp

Modified: cfe/trunk/lib/Frontend/CompilerInstance.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInstance.cpp?rev=165911&r1=165910&r2=165911&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInstance.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInstance.cpp Sun Oct 14 14:50:53 2012
@@ -837,6 +837,7 @@
   // FIXME: Even though we're executing under crash protection, it would still
   // be nice to do this with RemoveFileOnSignal when we can. However, that
   // doesn't make sense for all clients, so clean this up manually.
+  Instance.clearOutputFiles(/*EraseFiles=*/true);
   if (!TempModuleMapFileName.empty())
     llvm::sys::Path(TempModuleMapFileName).eraseFromDisk();
 }





More information about the cfe-commits mailing list