Remove a convoluted way of calling close by moving the call to the only caller.
[oota-llvm.git] / lib / Support / MemoryBuffer.cpp
index 539b6c3e754e74ba51a000f3a546d015452c4081..385ed6a58424dc22d22c576dd56e0b2befa09cbc 100644 (file)
@@ -204,7 +204,7 @@ class MemoryBufferMMapFile : public MemoryBuffer {
 public:
   MemoryBufferMMapFile(bool RequiresNullTerminator, int FD, uint64_t Len,
                        uint64_t Offset, std::error_code EC)
-      : MFR(FD, false, sys::fs::mapped_file_region::readonly,
+      : MFR(FD, sys::fs::mapped_file_region::readonly,
             getLegalMapSize(Len, Offset), getLegalMapOffset(Offset), EC) {
     if (!EC) {
       const char *Start = getStart(Len, Offset);