| commit | 70aa5391dda1cedd296a126d42a909b8a1ee84a8 | [log] [tgz] |
|---|---|---|
| author | John McCall <rjmccall@apple.com> | Wed Jan 06 05:24:50 2010 +0000 |
| committer | John McCall <rjmccall@apple.com> | Wed Jan 06 05:24:50 2010 +0000 |
| tree | 9227a20b6199ef20a285f9d8d1c6220f362d707d | |
| parent | d01472beee3f003bff7d6e69547d06f5b69f8b08 [diff] |
Significantly rework the calculation of effective integer-expression ranges for -Wsign-compare and -Wconversion, and use that coordinated logic to drive both diagnostics. The new logic works more transparently with implicit conversions, conditional operators, etc., as well as bringing -Wconversion's ability to deal with pseudo-closed operations (e.g. arithmetic on shorts) to -Wsign-compare. Fixes PRs 5887, 5937, 5938, and 5939. llvm-svn: 92823