llvm.org GIT mirror llvm / 27d4d1c
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 Yaron Keren 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
202202
203203 public:
204204 MemoryBufferMMapFile(bool RequiresNullTerminator, int FD, uint64_t Len,
205 uint64_t Offset, std::error_code EC)
205 uint64_t Offset, std::error_code &EC)
206206 : MFR(FD, sys::fs::mapped_file_region::readonly,
207207 getLegalMapSize(Len, Offset), getLegalMapOffset(Offset), EC) {
208208 if (!EC) {