]> granicus.if.org Git - clang/commit
Fix a horrible bug in all dataflow analyses that use CFGRecStmtVisitor (including...
authorTed Kremenek <kremenek@apple.com>
Fri, 22 Oct 2010 22:08:32 +0000 (22:08 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 22 Oct 2010 22:08:32 +0000 (22:08 +0000)
commitf50595df931bde89e3acd3ec18e4c7e41aa80852
tree05bc6a0a3e06035ca8c6233a0d0b2d3e33121efa
parent35fa76d0bb6fb8c86159a7506efd094a4fe376d2
Fix a horrible bug in all dataflow analyses that use CFGRecStmtVisitor (including live variables analysis).
We shouldn't recurse into CompoundStmts since they are already inlined in the CFG.  This could result in
bogus dead stores warnings (among other things).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117162 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Visitors/CFGRecStmtVisitor.h
test/Analysis/dead-stores.m