From a604d6c84d2df665d9f0e87412edb030d0ca3019 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! llvm-svn: 224159 --- llvm/lib/Support/MemoryBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/MemoryBuffer.cpp b/llvm/lib/Support/MemoryBuffer.cpp index 385ed6a..379db88 100644 --- a/llvm/lib/Support/MemoryBuffer.cpp +++ b/llvm/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) { -- 2.7.4