Fix DiagnoseBitwisePrecedence so it doesn't cast "-1" to the type
authorEli Friedman <eli.friedman@gmail.com>
Thu, 15 Nov 2012 00:29:07 +0000 (00:29 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 15 Nov 2012 00:29:07 +0000 (00:29 +0000)
commit37feb2d6a65f84baa4c299871636a49a8e3a8eb9
treecdc1e546200262289dd4ed5bf5d8c18ae2eee8df
parentab83a91709b1c0735e75f30edbde505e9f840cf0
Fix DiagnoseBitwisePrecedence so it doesn't cast "-1" to the type
BinaryOperator::Opcode.  This is bad form, and the behavior of the static_cast
in this case is unspecified according to the standard.

Fixes a warning that showed up from r167992 on self-host.

llvm-svn: 168010
clang/lib/Sema/SemaExpr.cpp