commit | ebbcd1de4f6b0a88b5c9108529b21306968bd79f | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Thu Nov 15 00:29:07 2012 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Thu Nov 15 00:29:07 2012 +0000 |
tree | dea04a37cbd64e8cee07a38650df3ef8b061abee | |
parent | 3dfb3fa859218272dcb6bf7a79dae533e245ba15 [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168010 91177308-0d34-0410-b5e6-96231b3b80d8