]> granicus.if.org Git - clang/commit
Enhance dead store checker to not flag preincrements to dead variables where the...
authorTed Kremenek <kremenek@apple.com>
Wed, 15 Oct 2008 05:23:41 +0000 (05:23 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 15 Oct 2008 05:23:41 +0000 (05:23 +0000)
commit380277e46ec1d2d9abedcddf357ceea935cbe576
tree3dce376ff58cb800880d8d589b1923917f8fb7ca
parent35bc0821c4f80041724cd4c5c4889b2581546a41
Enhance dead store checker to not flag preincrements to dead variables where the preincrement is a subexpression, e.g. foo(++x);  This can cause false negatives, but will remove a whole class of false positives.

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