diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2017-10-05 08:43:32 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2017-10-05 08:43:32 +0000 |
commit | 59428d182f6074363588beaecdacbbd1eb842bb8 (patch) | |
tree | 99c5764c7686174bd39651ec9485e9bf77eda7e7 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 8d8d201c17861aa2d8bdca42d1973b3ddf78aef4 (diff) | |
download | bcm5719-llvm-59428d182f6074363588beaecdacbbd1eb842bb8.tar.gz bcm5719-llvm-59428d182f6074363588beaecdacbbd1eb842bb8.zip |
[analyzer] Fix leak false positives on stuff put in C++/ObjC initializer lists.
The analyzer now realizes that C++ std::initializer_list objects and
Objective-C boxed structure/array/dictionary expressions can potentially
maintain a reference to the objects that were put into them. This avoids
false memory leak posivites and a few other issues.
This is a conservative behavior; for now, we do not model what actually happens
to the objects after being passed into such initializer lists.
rdar://problem/32918288
Differential Revision: https://reviews.llvm.org/D35216
llvm-svn: 314975
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions