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
This commit is contained in:
Reid Spencer 2007-07-18 05:27:33 +00:00
parent ad8c531e20
commit cbb7ec7396

View File

@ -403,7 +403,7 @@ LTO::optimizeModules(const std::string &OutputFilename,
TempDir.eraseFromDisk(true); TempDir.eraseFromDisk(true);
return LTO_WRITE_FAILURE; return LTO_WRITE_FAILURE;
} }
if (tmpAsmFilePath.createTemporaryFileOnDisk(&ErrMsg)) { if (tmpAsmFilePath.createTemporaryFileOnDisk(true, &ErrMsg)) {
cerr << "lto: " << ErrMsg << "\n"; cerr << "lto: " << ErrMsg << "\n";
TempDir.eraseFromDisk(true); TempDir.eraseFromDisk(true);
return LTO_WRITE_FAILURE; return LTO_WRITE_FAILURE;