From: Daniel Dunbar Date: Wed, 18 Mar 2009 23:08:52 +0000 (+0000) Subject: Driver: Delete the temporary files llvm::sys::Path::makeUnique X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84603bc4ed98caca9b82c1a68e63939927d8cd6d;p=clang 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 --- 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(); }