diff options
author | Hal Finkel <hfinkel@anl.gov> | 2015-01-17 03:31:43 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2015-01-17 03:31:43 +0000 |
commit | 0e39c55d229a5311751784705896f3dcdf8d8a11 (patch) | |
tree | 471e02a3b45dbaed1edfeb32e0840d7fcde7e8b8 /llvm/lib/Transforms/Utils/LoopSimplify.cpp | |
parent | 8888d5b32cf1bba746ff3e2fe8f04f53fc0368bc (diff) | |
download | llvm-0e39c55d229a5311751784705896f3dcdf8d8a11.zip llvm-0e39c55d229a5311751784705896f3dcdf8d8a11.tar.gz llvm-0e39c55d229a5311751784705896f3dcdf8d8a11.tar.bz2 |
[sanitizer] Adjust max read size in FlagHandlerInclude
Setting the maximum read size in FlagHandlerInclude to 2^15 might be a good
default, but causes the read to fail on systems with a page size larger than
that (ReadFileToBuffer(...) will fail if the maximum allowed size is less than
the value returned by GetPageSizeCached()). For example, on my PPC64/Linux
system, GetPageSizeCached() returns 2^16. In case the page size is larger, use
that instead.
llvm-svn: 226368
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
0 files changed, 0 insertions, 0 deletions