mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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
This commit is contained in:
parent
3e07e74e72
commit
27d4d1c7bf
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user