]> granicus.if.org Git - clang/commit
Dead emit dead store warnings when assigning nil to an ObjC object
authorTed Kremenek <kremenek@apple.com>
Tue, 23 Feb 2010 21:19:33 +0000 (21:19 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 23 Feb 2010 21:19:33 +0000 (21:19 +0000)
commit891322002b5f5886d812f6e8df12174fb2d8e73b
tree7123cea278aa2b8039afd01231387d83dabf2ce4
parent32141c8f69a6a51d7cf95a18229cd335ecd59903
Dead emit dead store warnings when assigning nil to an ObjC object
pointer (for defensive programming).  This matches the behavior with
assigning NULL to a regular pointer.  Fixes <rdar://problem/7631278>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96985 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Checker/CheckDeadStores.cpp
test/Analysis/dead-stores.m