[llvm] r334223 - Fix unused private variable.

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


Author: zturner
Date: Thu Jun  7 13:07:08 2018
New Revision: 334223

URL: http://llvm.org/viewvc/llvm-project?rev=334223&view=rev
Log:
Fix unused private variable.

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

Modified:
    llvm/trunk/lib/Support/FileOutputBuffer.cpp

Modified: llvm/trunk/lib/Support/FileOutputBuffer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/FileOutputBuffer.cpp?rev=334223&r1=334222&r2=334223&view=diff
==============================================================================
--- llvm/trunk/lib/Support/FileOutputBuffer.cpp (original)
+++ llvm/trunk/lib/Support/FileOutputBuffer.cpp Thu Jun  7 13:07:08 2018
@@ -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());




More information about the llvm-commits mailing list