]> granicus.if.org Git - clang/commit
Tweak DeadStoresChecker to not warn about dead stores to variables that
authorTed Kremenek <kremenek@apple.com>
Thu, 6 Sep 2012 22:32:48 +0000 (22:32 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 6 Sep 2012 22:32:48 +0000 (22:32 +0000)
commit2827f5af018c515986ffb1779ec2e7246988f150
tree05560e0f68c84793078944cde3adb5f01f05125f
parent8123b6e7838216a53ba050f07e36fee28e1bbdaf
Tweak DeadStoresChecker to not warn about dead stores to variables that
are used in EH code.  Right now the CFG doesn't support exceptions well,
so we need this hack to avoid bogus dead store warnings.

Fixes <rdar://problem/12147586>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163353 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp
test/Analysis/dead-stores.cpp