Silence Clang's -Wlogical-op-parentheses warning.
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 24 May 2012 17:11:00 +0000 (17:11 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 24 May 2012 17:11:00 +0000 (17:11 +0000)
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

lib/AsmParser/LLLexer.cpp

index e718069db2927aeaed3d9a2263917eb73477e98a..dabcbaa9e83d2f264185fed4b862a3d1569c4e02 100644 (file)
@@ -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';