diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-05-06 00:51:45 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-05-06 00:51:45 +0000 |
commit | 6a914399c907624d1d9364dd06edb34c825375a4 (patch) | |
tree | d60d5da2dd30a0ca2a9f98588c641a4a71aa1016 /lib/Support/Atomic.cpp | |
parent | 096d8411b3c093e90e2509bab2fea4f7934e7f91 (diff) | |
download | llvm-6a914399c907624d1d9364dd06edb34c825375a4.tar.gz llvm-6a914399c907624d1d9364dd06edb34c825375a4.tar.bz2 llvm-6a914399c907624d1d9364dd06edb34c825375a4.tar.xz |
[Support/MemoryBuffer] Move the IsVolatile check inside shouldUseMmap() and make sure to zero-initialize the rest
of the buffer if we unexpectedly reach end-of-file while reading.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Atomic.cpp')
0 files changed, 0 insertions, 0 deletions