From b7bbd461223924e7fa05d98dbeadfc4b4a0093d1 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 3 Dec 2010 23:58:31 +0000 Subject: [PATCH] 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 --- tools/lto/LTOCodeGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp index c7a62268d7c..06a6ac7e8ea 100644 --- a/tools/lto/LTOCodeGenerator.cpp +++ b/tools/lto/LTOCodeGenerator.cpp @@ -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; }