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:
Devang Patel 2010-12-03 23:58:31 +00:00
parent 038d436ac8
commit 6b5d5b5c3b
1 changed files with 1 additions and 1 deletions

View File

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