summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/redefined_system.c
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2015-02-05 01:02:53 +0000
committerAnna Zaks <ganna@apple.com>2015-02-05 01:02:53 +0000
commit486a0ff4b79bb79cbd12c4fd34cf2b816d62bc12 (patch)
tree7c28d51c6c5af95c56ee228c5e43a96411722460 /clang/test/Analysis/redefined_system.c
parent7b6da65990958fc3478961526332bfca283b77a7 (diff)
downloadbcm5719-llvm-486a0ff4b79bb79cbd12c4fd34cf2b816d62bc12.tar.gz
bcm5719-llvm-486a0ff4b79bb79cbd12c4fd34cf2b816d62bc12.zip
[analyzer] Look for allocation site in the parent frames as well as the current one.
Instead of handling edge cases (mostly involving blocks), where we have difficulty finding an allocation statement, allow the allocation site to be in a parent node. Previously we assumed that the allocation site can always be found in the same frame as allocation, but there are scenarios in which an element is leaked in a child frame but is allocated in the parent. llvm-svn: 228247
Diffstat (limited to 'clang/test/Analysis/redefined_system.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud