forked from OSchip/llvm-project
Do not try luck by using given name to create temporary file. In parallel builds it may not work.
This time for .s file. llvm-svn: 121016
This commit is contained in:
parent
e88168ae6e
commit
2379f3abd5
|
@ -184,7 +184,7 @@ const void* LTOCodeGenerator::compile(size_t* length, std::string& errMsg)
|
|||
{
|
||||
// make unique temp .s file to put generated assembly code
|
||||
sys::Path uniqueAsmPath("lto-llvm.s");
|
||||
if ( uniqueAsmPath.createTemporaryFileOnDisk(true, &errMsg) )
|
||||
if ( uniqueAsmPath.createTemporaryFileOnDisk(false, &errMsg) )
|
||||
return NULL;
|
||||
sys::RemoveFileOnSignal(uniqueAsmPath);
|
||||
|
||||
|
|
Loading…
Reference in New Issue