Fix Wbitfield-constant-conversion false positives
authorDaniel Marjamaki <daniel.marjamaki@evidente.se>
Thu, 22 Sep 2016 14:13:46 +0000 (14:13 +0000)
committerDaniel Marjamaki <daniel.marjamaki@evidente.se>
Thu, 22 Sep 2016 14:13:46 +0000 (14:13 +0000)
commitd9a3168f1086ee904474f354d0e3d64f43cc7e47
tree6e7963f87cb6fd4b9f5ff905ac846dbfa63808ee
parent0777fb4fcf9ffd4597dea71d8c90e315e89768ca
Fix Wbitfield-constant-conversion false positives

Summary:
The diagnostic did not handle ~ well. An expression such as ~0 is often used when 'all ones' is needed.

Differential Revision: https://reviews.llvm.org/D24232

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282156 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Sema/constant-conversion.c