]> granicus.if.org Git - clang/commit
Extend -Wtautological-overlap-compare to more cases.
authorRichard Trieu <rtrieu@google.com>
Wed, 4 Jan 2017 00:46:30 +0000 (00:46 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 4 Jan 2017 00:46:30 +0000 (00:46 +0000)
commite5eb147a7b0cb5a126611d43f3482ec8427bd2da
treecaae7d0d4ef8d87015ac5fc685ee647554f7e650
parentae1bed598a9f269250c26dbf9a23c560a0639100
Extend -Wtautological-overlap-compare to more cases.

Previously, -Wtautological-overlap-compare did not warn on cases where the
boolean expression was in an assignment or return statement.  This patch
should cause all boolean statements to be passed to the tautological compare
checks in the CFG analysis.

This is one of the issues from PR13101

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290920 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFG.cpp
test/Sema/warn-overlap.c