[llvm-commits] [llvm] r120860 - /llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Devang Patel
dpatel at apple.com
Fri Dec 3 15:58:31 PST 2010
Author: dpatel
Date: Fri Dec 3 17:58:31 2010
New Revision: 120860
URL: http://llvm.org/viewvc/llvm-project?rev=120860&view=rev
Log:
Do not try luck by using given name to create temporary file. In parallel builds it may not work.
Modified:
llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Modified: llvm/trunk/tools/lto/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOCodeGenerator.cpp?rev=120860&r1=120859&r2=120860&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto/LTOCodeGenerator.cpp Fri Dec 3 17:58:31 2010
@@ -209,7 +209,7 @@
// make unique temp .o file to put generated object file
sys::PathWithStatus uniqueObjPath("lto-llvm.o");
- if ( uniqueObjPath.createTemporaryFileOnDisk(true, &errMsg) ) {
+ if ( uniqueObjPath.createTemporaryFileOnDisk(false, &errMsg) ) {
uniqueAsmPath.eraseFromDisk();
return NULL;
}
More information about the llvm-commits
mailing list