Skip to content

Commit

Permalink
Silence Clang's -Wlogical-op-parentheses warning.
Browse files Browse the repository at this point in the history
I'm not sure it's really worth expressing this as a range rather than 3 specific equalities, but it doesn't seem fundamentally wrong either.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157398 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dwblaikie committed May 24, 2012
1 parent 057beb8 commit 8d2a004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AsmParser/LLLexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ lltok::Kind LLLexer::Lex0x() {
CurPtr = TokStart + 2;

char Kind;
if (CurPtr[0] >= 'K' && CurPtr[0] <= 'M' || CurPtr[0] == 'H') {
if ((CurPtr[0] >= 'K' && CurPtr[0] <= 'M') || CurPtr[0] == 'H') {
Kind = *CurPtr++;
} else {
Kind = 'J';
Expand Down

0 comments on commit 8d2a004

Please sign in to comment.