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;