diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2014-05-20 17:31:11 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2014-05-20 17:31:11 +0000 |
| commit | b85e94189da016398fa784172171b9157183273c (patch) | |
| tree | 6331ec6b5138c2d42a9f0fe6a6f1a0cb1d50a758 /lib/CodeGen/CGExprConstant.cpp | |
| parent | ca90717aadf79d9b83d3a95d214ec6d117de841c (diff) | |
| download | clang-b85e94189da016398fa784172171b9157183273c.tar.gz clang-b85e94189da016398fa784172171b9157183273c.tar.bz2 clang-b85e94189da016398fa784172171b9157183273c.tar.xz | |
Add a check for tautological bitwise comparisons to -Wtautological-compare.
This catches issues like:
if ((x & 8) == 4) { ... }
if ((x | 4) != 3) { ... }
Patch by Anders Rönnholm!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions
