Avoid cppcheck operator precedence warnings. NFCI.

Prefer ((X & Y) ? A : B) to (X & Y ? A : B)

llvm-svn: 359884
This commit is contained in:
Simon Pilgrim
2019-05-03 13:50:38 +00:00
parent 2c8936fd26
commit aa49be4926
6 changed files with 7 additions and 7 deletions

View File

@@ -103,7 +103,7 @@ static cl::opt<bool> DisableLazyLoading(
namespace {
static int64_t unrotateSign(uint64_t U) { return U & 1 ? ~(U >> 1) : U >> 1; }
static int64_t unrotateSign(uint64_t U) { return (U & 1) ? ~(U >> 1) : U >> 1; }
class BitcodeReaderMetadataList {
/// Array of metadata references.