From 27d4d1c7bfb68050f60c92e078ee28e5ab803da2 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Fri, 12 Dec 2014 22:27:53 +0000 Subject: [PATCH] Pass EC by reference to MemoryBufferMMapFile to return error code. Patch by Kim Grasman! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224159 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/MemoryBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Support/MemoryBuffer.cpp b/lib/Support/MemoryBuffer.cpp index 385ed6a5842..379db8811d4 100644 --- a/lib/Support/MemoryBuffer.cpp +++ b/lib/Support/MemoryBuffer.cpp @@ -203,7 +203,7 @@ class MemoryBufferMMapFile : public MemoryBuffer { public: MemoryBufferMMapFile(bool RequiresNullTerminator, int FD, uint64_t Len, - uint64_t Offset, std::error_code EC) + uint64_t Offset, std::error_code &EC) : MFR(FD, sys::fs::mapped_file_region::readonly, getLegalMapSize(Len, Offset), getLegalMapOffset(Offset), EC) { if (!EC) {