aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/PredicateInfo.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-07-19 00:26:01 -0700
committerFangrui Song <i@maskray.me>2020-07-19 00:31:52 -0700
commit2e74b6d80f347203ae17ec8b09e6b3e86ff6c179 (patch)
tree4e1504747005299f66271953179be92865e5d4eb /llvm/lib/Transforms/Utils/PredicateInfo.cpp
parentd37befdfe5cd93666f8077c32836673ad70385d1 (diff)
downloadllvm-2e74b6d80f347203ae17ec8b09e6b3e86ff6c179.zip
llvm-2e74b6d80f347203ae17ec8b09e6b3e86ff6c179.tar.gz
llvm-2e74b6d80f347203ae17ec8b09e6b3e86ff6c179.tar.bz2
[llvm-cov gcov] Don't require NUL terminator when reading files
.gcno, .gcda and source files can be modified while we are reading them. If the concurrent modification of a file being read nullifies the NUL terminator assumption, llvm-cov can trip over an assertion failure in MemoryBuffer::init. This is not so rare - the source files can be in an editor and .gcda can be written by an running process (if the process forks, when .gcda gets written is probably more unpredictable). There is no accompanying test because an assertion failure requires data races with some involved setting.
Diffstat (limited to 'llvm/lib/Transforms/Utils/PredicateInfo.cpp')
0 files changed, 0 insertions, 0 deletions