1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Fix a sys::Path API error caught by a gcc 4.2 warning.

llvm-svn: 39995
This commit is contained in:
Reid Spencer 2007-07-18 05:27:33 +00:00
parent fe26fdfeaf
commit 5918628eba

View File

@ -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;