mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 04:39:44 +00:00
Do not try luck by using given name to create temporary file. In parallel builds it may not work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120860 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ed09087dd3
commit
b7bbd46122
@ -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
Block a user