aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp
diff options
context:
space:
mode:
authorDevin Coughlin <dcoughlin@apple.com>2015-09-24 16:52:56 +0000
committerDevin Coughlin <dcoughlin@apple.com>2015-09-24 16:52:56 +0000
commit0da2e9334551dcccfe40786769fbb7e6f52f6da3 (patch)
tree8535ffb6959a44eecd5962a6a558383d3bedeb80 /clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp
parentd983ae0a0ec5beeb844992dc23f0b923b7499d75 (diff)
downloadllvm-0da2e9334551dcccfe40786769fbb7e6f52f6da3.zip
llvm-0da2e9334551dcccfe40786769fbb7e6f52f6da3.tar.gz
llvm-0da2e9334551dcccfe40786769fbb7e6f52f6da3.tar.bz2
[analyzer] When memcpy'ing into a fixed-size array, do not invalidate entire region.
Change the analyzer's modeling of memcpy to be more precise when copying into fixed-size array fields. With this change, instead of invalidating the entire containing region the analyzer now invalidates only offsets for the array itself when it can show that the memcpy stays within the bounds of the array. This addresses false positive memory leak warnings of the kind reported by krzysztof in https://llvm.org/bugs/show_bug.cgi?id=22954 (This is the second attempt, now with assertion failures resolved.) A patch by Pierre Gousseau! Differential Revision: http://reviews.llvm.org/D12571 llvm-svn: 248516
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp')
0 files changed, 0 insertions, 0 deletions