aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-18 23:08:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-18 23:08:52 +0000
commit84603bc4ed98caca9b82c1a68e63939927d8cd6d (patch)
treef54b82a1bfcc955e2a9f6cfc9e8931d334ed34a6 /lib/Driver/Driver.cpp
parentc8ea24e7729895fce09a1805bbcddcceea48e2a6 (diff)
Driver: Delete the temporary files llvm::sys::Path::makeUnique
sometimes leaves around. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index e9e751178d..d1db63650c 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -898,6 +898,10 @@ std::string Driver::GetTemporaryPath(const char *Suffix) const {
return "";
}
+ // FIXME: Grumble, makeUnique sometimes leaves the file around!?
+ // PR3837.
+ P.eraseFromDisk(false, 0);
+
P.appendSuffix(Suffix);
return P.toString();
}