From 2698640492b0c1e9d2d5bbba93ccd769f09f3c72 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 7 Jun 2018 20:37:22 +0000 Subject: [PATCH] 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 --- llvm/tools/gold/gold-plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 08cef6f93103..b3b2743033c4 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -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());