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 | 7728f3542e45915878ff7f98d7dd14bca4fe933e (patch) | |
tree | 5355772ee91e6ae30d8073344496e2bac580fee5 /lib/CodeGen/CodeGenModule.cpp | |
parent | e2787a6b9332ec828889a6aa1de4d7738524110a (diff) | |
download | clang-7728f3542e45915878ff7f98d7dd14bca4fe933e.tar.gz |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions