summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2017-10-05 08:43:32 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2017-10-05 08:43:32 +0000
commit7728f3542e45915878ff7f98d7dd14bca4fe933e (patch)
tree5355772ee91e6ae30d8073344496e2bac580fee5 /lib/CodeGen/CodeGenModule.cpp
parente2787a6b9332ec828889a6aa1de4d7738524110a (diff)
downloadclang-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