summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CompilerDriver/Main.cpp
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
commit3c9e8d3b1fdadc85604c8fff43cea4db24f6f897 (patch)
tree058c48939feafc0bd6c99a37f86fb2dbc0a4f404 /llvm/lib/CompilerDriver/Main.cpp
parentfc69ee2cc6f0231b310de7db0e86f5a3d9d1882e (diff)
downloadbcm5719-llvm-3c9e8d3b1fdadc85604c8fff43cea4db24f6f897.tar.gz
bcm5719-llvm-3c9e8d3b1fdadc85604c8fff43cea4db24f6f897.zip
Delete the temp dir even when '--temp-dir' is specified.
llvm-svn: 75374
Diffstat (limited to 'llvm/lib/CompilerDriver/Main.cpp')
-rw-r--r--llvm/lib/CompilerDriver/Main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CompilerDriver/Main.cpp b/llvm/lib/CompilerDriver/Main.cpp
index cd7bc474d12..3e1fc9f124e 100644
--- a/llvm/lib/CompilerDriver/Main.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud