diff options
| author | Richard Trieu <rtrieu@google.com> | 2014-04-04 04:13:47 +0000 |
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2014-04-04 04:13:47 +0000 |
| commit | 95aafb490aa84ff87c1436ba00d95c1561741f04 (patch) | |
| tree | 57759f1cd256b1cb34bd28a25fa91f8a3f58a5f5 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 6acf9ee0e5e7a18998d81281d81de082a6b4b12a (diff) | |
| download | clang-95aafb490aa84ff87c1436ba00d95c1561741f04.tar.gz clang-95aafb490aa84ff87c1436ba00d95c1561741f04.tar.bz2 clang-95aafb490aa84ff87c1436ba00d95c1561741f04.tar.xz | |
Extend -Wtautological-constant-out-of-range-compare to handle boolean values
better. This warning will now trigger on the following conditionals:
bool b;
int i;
if (b > 1) {} // always false
if (0 <= (i > 5)) {} // always true
if (-1 > b) {} // always false
Patch by Per Viberg.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
