diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-05-24 17:11:00 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-05-24 17:11:00 +0000 |
commit | 8d2a004822f9cc5bf38d5ef14494e2f0faa82b8c (patch) | |
tree | caab95a4af2553acff02393b1273cedd1087bf0b /lib/AsmParser/LLLexer.cpp | |
parent | 057beb8d4fe8d5dad98ad80a49a649730c3a3eb0 (diff) |
Silence Clang's -Wlogical-op-parentheses warning.
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
Diffstat (limited to 'lib/AsmParser/LLLexer.cpp')
-rw-r--r-- | lib/AsmParser/LLLexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/LLLexer.cpp b/lib/AsmParser/LLLexer.cpp index e718069db2..dabcbaa9e8 100644 --- a/lib/AsmParser/LLLexer.cpp +++ b/lib/AsmParser/LLLexer.cpp @@ -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'; |