diff options
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 2 |
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()); |