[llvm] r334231 - Try to fix build.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 7 13:37:22 PDT 2018


Author: zturner
Date: Thu Jun  7 13:37:22 2018
New Revision: 334231

URL: http://llvm.org/viewvc/llvm-project?rev=334231&view=rev
Log:
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.

Modified:
    llvm/trunk/tools/gold/gold-plugin.cpp

Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=334231&r1=334230&r2=334231&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Thu Jun  7 13:37:22 2018
@@ -787,7 +787,7 @@ static int getOutputFileName(StringRef I
     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());




More information about the llvm-commits mailing list