summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2018-11-01 00:43:35 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2018-11-01 00:43:35 +0000
commit32c0c85382ab63ff38f58b41e904bbfe733d9a60 (patch)
tree10408bc41a0da929b0ed00cb0307516b6911d7cf /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parenta9f900561ed7d7c8738c32b68588c9ec5e6c1f5f (diff)
downloadbcm5719-llvm-32c0c85382ab63ff38f58b41e904bbfe733d9a60.tar.gz
bcm5719-llvm-32c0c85382ab63ff38f58b41e904bbfe733d9a60.zip
[analyzer] pr39348: MallocChecker: Realize that sized delete isn't custom delete.
MallocChecker no longer thinks that operator delete() that accepts the size of the object to delete (available since C++14 or under -fsized-deallocation) is some weird user-defined operator. Instead, it handles it like normal delete. Additionally, it exposes a regression in NewDelete-intersections.mm's testStandardPlacementNewAfterDelete() test, where the diagnostic is delayed from before the call of placement new into the code of placement new in the header. This happens because the check for pass-into-function-after-free for placement arguments is located in checkNewAllocator(), which happens after the allocator is inlined, which is too late. Move this use-after-free check into checkPreCall instead, where it works automagically because the guard that prevents it from working is useless and can be removed as well. This commit causes regressions under -analyzer-config c++-allocator-inlining=false but this option is essentially unsupported because the respective feature has been enabled by default quite a while ago. Differential Revision: https://reviews.llvm.org/D53543 llvm-svn: 345802
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud