summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2014-05-20 17:31:11 +0000
committerJordan Rose <jordan_rose@apple.com>2014-05-20 17:31:11 +0000
commitb85e94189da016398fa784172171b9157183273c (patch)
tree6331ec6b5138c2d42a9f0fe6a6f1a0cb1d50a758 /lib/CodeGen/CGExprAgg.cpp
parentca90717aadf79d9b83d3a95d214ec6d117de841c (diff)
downloadclang-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/CGExprAgg.cpp')
0 files changed, 0 insertions, 0 deletions