Delete special-case "out-of-range" handling for bools, and just use the normal
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 6 Dec 2017 19:23:19 +0000 (19:23 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 6 Dec 2017 19:23:19 +0000 (19:23 +0000)
commit692f66ab626b50f14e4177f27e5b4f053301d686
tree6c02ef17633e453016850216c6f1c11e7022fee2
parent5beb1838bb389bf5df85cd449d373f8d4a9b75ff
Delete special-case "out-of-range" handling for bools, and just use the normal
codepath plus the new "minimum / maximum value of type" diagnostic to get the
same effect.

Move the warning for an in-range but tautological comparison of a constant (0
or 1) against a bool out of -Wtautological-constant-out-of-range-compare into
the more-appropriate -Wtautological-constant-compare.

llvm-svn: 319942
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaChecking.cpp