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 | 827faf8f2bada469f5fb5e4c751692aba115b4af (patch) | |
tree | 8a488f90010b2f3705745d4c13935656c11bf7cb /clang/lib/Driver/Compilation.cpp | |
parent | f259f3f312a602ffc6df0133538eb9b3a2efafe0 (diff) | |
download | bcm5719-llvm-827faf8f2bada469f5fb5e4c751692aba115b4af.tar.gz bcm5719-llvm-827faf8f2bada469f5fb5e4c751692aba115b4af.zip |
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).
llvm-svn: 67632
Diffstat (limited to 'clang/lib/Driver/Compilation.cpp')
-rw-r--r-- | clang/lib/Driver/Compilation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Compilation.cpp b/clang/lib/Driver/Compilation.cpp index a2fc9212a51..2165bb74018 100644 --- a/clang/lib/Driver/Compilation.cpp +++ b/clang/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; |