[llvm-commits] [llvm] r39995 - /llvm/trunk/tools/lto/lto.cpp
Reid Spencer
rspencer at reidspencer.com
Tue Jul 17 22:27:33 PDT 2007
Author: reid
Date: Wed Jul 18 00:27:33 2007
New Revision: 39995
URL: http://llvm.org/viewvc/llvm-project?rev=39995&view=rev
Log:
Fix a sys::Path API error caught by a gcc 4.2 warning.
Modified:
llvm/trunk/tools/lto/lto.cpp
Modified: llvm/trunk/tools/lto/lto.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/lto.cpp?rev=39995&r1=39994&r2=39995&view=diff
==============================================================================
--- llvm/trunk/tools/lto/lto.cpp (original)
+++ llvm/trunk/tools/lto/lto.cpp Wed Jul 18 00:27:33 2007
@@ -403,7 +403,7 @@
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;
More information about the llvm-commits
mailing list