From cbb7ec7396914560e107ff32d4a820774c4392dd Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 18 Jul 2007 05:27:33 +0000 Subject: [PATCH] Fix a sys::Path API error caught by a gcc 4.2 warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39995 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/lto/lto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index dacea661d19..cef26f1f065 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -403,7 +403,7 @@ LTO::optimizeModules(const std::string &OutputFilename, TempDir.eraseFromDisk(true); return LTO_WRITE_FAILURE; } - if (tmpAsmFilePath.createTemporaryFileOnDisk(&ErrMsg)) { + if (tmpAsmFilePath.createTemporaryFileOnDisk(true, &ErrMsg)) { cerr << "lto: " << ErrMsg << "\n"; TempDir.eraseFromDisk(true); return LTO_WRITE_FAILURE;