From: Mikhail Glushenkov Date: Sat, 11 Jul 2009 19:27:07 +0000 (+0000) Subject: Delete the temp dir even when '--temp-dir' is specified. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=63bb60fc320f6076f31e1dbe18b67b0ff1ecdd71;p=oota-llvm.git 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 --- diff --git a/lib/CompilerDriver/Main.cpp b/lib/CompilerDriver/Main.cpp index cd7bc474d12..3e1fc9f124e 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);