aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CompilerDriver
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-07-11 19:27:07 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-07-11 19:27:07 +0000
commit63bb60fc320f6076f31e1dbe18b67b0ff1ecdd71 (patch)
tree19809237eea2b2888a5e2bb0cfbf120ea105ac62 /lib/CompilerDriver
parent646ca92bfc20002a5c6d9b2b42e6940fd86ff7c9 (diff)
downloadexternal_llvm-63bb60fc320f6076f31e1dbe18b67b0ff1ecdd71.zip
external_llvm-63bb60fc320f6076f31e1dbe18b67b0ff1ecdd71.tar.gz
external_llvm-63bb60fc320f6076f31e1dbe18b67b0ff1ecdd71.tar.bz2
Delete the temp dir even when '--temp-dir' is specified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CompilerDriver')
-rw-r--r--lib/CompilerDriver/Main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CompilerDriver/Main.cpp b/lib/CompilerDriver/Main.cpp
index cd7bc47..3e1fc9f 100644
--- a/lib/CompilerDriver/Main.cpp
+++ b/lib/CompilerDriver/Main.cpp
@@ -62,8 +62,7 @@ namespace {
int BuildTargets(CompilationGraph& graph, const LanguageMap& langMap) {
int ret;
const sys::Path& tempDir = getTempDir();
- bool toDelete =
- (SaveTemps == SaveTempsEnum::Unset && TempDirname.empty());
+ bool toDelete = (SaveTemps == SaveTempsEnum::Unset);
try {
ret = graph.Build(tempDir, langMap);