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:
Devang Patel 2010-12-06 18:04:39 +00:00
parent e88168ae6e
commit 2379f3abd5
1 changed files with 1 additions and 1 deletions

View File

@ -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);