]> granicus.if.org Git - clang/commit
[analyzer] DeallocChecker: Don't warn on release of readonly assign property in dealloc.
authorDevin Coughlin <dcoughlin@apple.com>
Sat, 6 Feb 2016 17:17:32 +0000 (17:17 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Sat, 6 Feb 2016 17:17:32 +0000 (17:17 +0000)
commit44272b9ce7be2c5a2b81a81cb2383b07ad3948d8
tree55226863a8287822ed1064a6fa8a26d1d1783161
parent9defcf9419d988d16a3050944c6804a8377bcda8
[analyzer] DeallocChecker: Don't warn on release of readonly assign property in dealloc.

It is common for the ivars for read-only assign properties to always be stored retained,
so don't warn for a release in dealloc for the ivar backing these properties.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@259998 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
test/Analysis/PR2978.m