summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-06-07 20:37:22 +0000
committerZachary Turner <zturner@google.com>2018-06-07 20:37:22 +0000
commit2698640492b0c1e9d2d5bbba93ccd769f09f3c72 (patch)
tree9fce6e5908f26032f36dc0e4bcf2d1a7f8f0ed86
parente0edcaa4a95bf9979ee31de635824c7125799a86 (diff)
downloadbcm5719-llvm-2698640492b0c1e9d2d5bbba93ccd769f09f3c72.tar.gz
bcm5719-llvm-2698640492b0c1e9d2d5bbba93ccd769f09f3c72.zip
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
-rw-r--r--llvm/tools/gold/gold-plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index 08cef6f9310..b3b2743033c 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());
OpenPOWER on IntegriCloud