Fix unused private variable.

This parameter got lost in the refactor.  Add it back.

llvm-svn: 334223
This commit is contained in:
Zachary Turner 2018-06-07 20:07:08 +00:00
parent 2683802ba0
commit 154a72ddf7
1 changed files with 2 additions and 1 deletions

View File

@ -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());