diff options
author | Zachary Turner <zturner@google.com> | 2018-06-07 20:07:08 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2018-06-07 20:07:08 +0000 |
commit | 154a72ddf7500b6daf428b89254a9f087b05c333 (patch) | |
tree | acab090cbe2d4685041126df36269fc6f7985a07 | |
parent | 2683802ba086fd8d0ff981dda17ff096e8be4f25 (diff) | |
download | bcm5719-llvm-154a72ddf7500b6daf428b89254a9f087b05c333.tar.gz bcm5719-llvm-154a72ddf7500b6daf428b89254a9f087b05c333.zip |
Fix unused private variable.
This parameter got lost in the refactor. Add it back.
llvm-svn: 334223
-rw-r--r-- | llvm/lib/Support/FileOutputBuffer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/FileOutputBuffer.cpp b/llvm/lib/Support/FileOutputBuffer.cpp index 0a771682a2c..de555388866 100644 --- a/llvm/lib/Support/FileOutputBuffer.cpp +++ b/llvm/lib/Support/FileOutputBuffer.cpp @@ -85,7 +85,8 @@ public: using namespace sys::fs; int FD; std::error_code EC; - if (auto EC = openFileForWrite(FinalPath, FD, CD_CreateAlways, OF_None)) + if (auto EC = + openFileForWrite(FinalPath, FD, CD_CreateAlways, OF_None, Mode)) return errorCodeToError(EC); raw_fd_ostream OS(FD, /*shouldClose=*/true, /*unbuffered=*/true); OS << StringRef((const char *)Buffer.base(), Buffer.size()); |