Try to fix build.

I don't know how to build this code, but based on the failing
buildbot error message it looks like this change should get
the buildbot up and running again.

llvm-svn: 334231
This commit is contained in:
Zachary Turner 2018-06-07 20:37:22 +00:00
parent e0edcaa4a9
commit 2698640492
1 changed files with 1 additions and 1 deletions

View File

@ -787,7 +787,7 @@ static int getOutputFileName(StringRef InFilename, bool TempOutFile,
if (TaskID > 0)
NewFilename += utostr(TaskID);
std::error_code EC =
sys::fs::openFileForWrite(NewFilename, FD, sys::fs::F_None);
sys::fs::openFileForWrite(NewFilename, FD, sys::fs::CD_CreateAlways);
if (EC)
message(LDPL_FATAL, "Could not open file %s: %s", NewFilename.c_str(),
EC.message().c_str());