mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2026-07-21 03:05:30 -04:00
5832f87aef
When a null terminator is required and the file size is a multiple of the system page size, MemoryBuffer will prefer pread() over mmap(), which can result in excessive memory usage. Patch by Mike Hommey! Differential Revision: https://reviews.llvm.org/D56475 llvm-svn: 350774