diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-10-14 19:50:53 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-10-14 19:50:53 +0000 |
commit | a2e94892e273423e2f772f989921cda6442a66c4 (patch) | |
tree | ae7244846dc66eae49e2e4bdcdffd62729ad80fa | |
parent | ac447fce02d119fb70f0aab885d836dea43e7f26 (diff) |
Make sure temporary files are deleted when recovering from a crash when compiling modules.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165911 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Frontend/CompilerInstance.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index c50a651444..a8cafdbfef 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -837,6 +837,7 @@ static void compileModule(CompilerInstance &ImportingInstance, // 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(); } |