Do not try luck by using given name to create temporary file. In parallel builds it may not work.
llvm-svn: 120860
This commit is contained in:
parent
038d436ac8
commit
6b5d5b5c3b
|
@ -209,7 +209,7 @@ const void* LTOCodeGenerator::compile(size_t* length, std::string& errMsg)
|
|||
|
||||
// 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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue