mirror of
https://github.com/intel/llvm.git
synced 2026-02-04 20:00:11 +08:00
Add an Error string specifically for when we hit an ENOMEM when
trying to mmap a file fails so parent caller function can provide helpful information to use about what went wrong. llvm-svn: 155617
This commit is contained in:
@@ -207,6 +207,10 @@ DataBufferMemoryMap::MemoryMapFromFileDescriptor (int fd,
|
||||
}
|
||||
}
|
||||
}
|
||||
if (error.GetError() == ENOMEM)
|
||||
{
|
||||
error.SetErrorStringWithFormat("could not allocate %lld bytes of memory to mmap in file", (uint64_t) length);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user