Take into account the zero sign bit for positive numbers when computing the bit
authorRichard Trieu <rtrieu@google.com>
Fri, 16 Nov 2012 01:32:40 +0000 (01:32 +0000)
committerRichard Trieu <rtrieu@google.com>
Fri, 16 Nov 2012 01:32:40 +0000 (01:32 +0000)
commit08b5fef122e899179c12c05792cd48dc36e2d319
treeec504b5f0f49ea8b1b0a508b430f3cff7dc59903
parentc08fa185961a38a1d972ccc7267206d0382f81f3
Take into account the zero sign bit for positive numbers when computing the bit
width of an enum with negative values in IntRange.  Include a test for
-Wtautological-constant-out-of-range-compare where this had manifested.

llvm-svn: 168126
clang/lib/Sema/SemaChecking.cpp
clang/test/SemaCXX/compare.cpp