Skip to content
  • Ted Kremenek's avatar
    For looking at "dead stores" in declarations, we now check to see · 2f1a79d3
    Ted Kremenek authored
    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.
    
    llvm-svn: 41853
    2f1a79d3
Loading