commit | 127892988902fbb0e13d8f95ea43efdcfbf36a8d | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Tue Sep 11 17:24:14 2007 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Tue Sep 11 17:24:14 2007 +0000 |
tree | af00fa36cad87b13f179746cb0e40325af8f439f | |
parent | c0c3d7315afb5ae8b857dce985cb7e05460f8cec [diff] |
For looking at "dead stores" in declarations, we now check to see if the assigned value is a constant expression, e.g.: int x = 0; We then check to see if "x" is ever reassigned later. If so, we don't emit a warning. This is because programmers frequently use defensive programming to make sure a variable has a defined value. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41853 91177308-0d34-0410-b5e6-96231b3b80d8