summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorDevin Coughlin <dcoughlin@apple.com>2015-08-28 22:26:05 +0000
committerDevin Coughlin <dcoughlin@apple.com>2015-08-28 22:26:05 +0000
commit35d5dd29862a61754b6e610e0140536f953ec1ce (patch)
treee8dfe8e959ce57f2101a7aebbc65dbe371778e4f /clang/lib/Basic/Targets.cpp
parentc4a6c1f7fd90773fbe911e24d080efed4f7051a7 (diff)
downloadbcm5719-llvm-35d5dd29862a61754b6e610e0140536f953ec1ce.tar.gz
bcm5719-llvm-35d5dd29862a61754b6e610e0140536f953ec1ce.zip
[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 A patch by Pierre Gousseau! Differential Revision: http://reviews.llvm.org/D11832 llvm-svn: 246345
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud