diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-24 17:49:01 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-24 17:49:01 +0000 |
commit | 9e3a224943163995d49c474f372c72ca91884780 (patch) | |
tree | 4391dd1621f1303d048e8451093e8334a1449ebf /lib/Driver/Compilation.cpp | |
parent | fe2e04a979205c1f395b699a24d74adb82bb4833 (diff) |
Driver: Result files shouldn't be removed on failure when -save-temps
is specified.
- No easy way to make a safe test case for this (given where the
driver is supposed to put temp files).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Compilation.cpp')
-rw-r--r-- | lib/Driver/Compilation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Compilation.cpp b/lib/Driver/Compilation.cpp index a2fc9212a5..2165bb7401 100644 --- a/lib/Driver/Compilation.cpp +++ b/lib/Driver/Compilation.cpp @@ -170,7 +170,7 @@ int Compilation::Execute() const { CleanupFileList(TempFiles); // If the compilation failed, remove result files as well. - if (Res != 0) + if (Res != 0 && !getArgs().hasArg(options::OPT_save_temps)) CleanupFileList(ResultFiles, true); return Res; |