[llvm-commits] [llvm] r157398 - /llvm/trunk/lib/AsmParser/LLLexer.cpp

David Blaikie dblaikie at gmail.com
Thu May 24 10:11:01 PDT 2012


Author: dblaikie
Date: Thu May 24 12:11:00 2012
New Revision: 157398

URL: http://llvm.org/viewvc/llvm-project?rev=157398&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/AsmParser/LLLexer.cpp

Modified: llvm/trunk/lib/AsmParser/LLLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLLexer.cpp?rev=157398&r1=157397&r2=157398&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLLexer.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLLexer.cpp Thu May 24 12:11:00 2012
@@ -678,7 +678,7 @@
   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';





More information about the llvm-commits mailing list