projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b76810f
)
Silence Clang's -Wlogical-op-parentheses warning.
author
David Blaikie
<dblaikie@gmail.com>
Thu, 24 May 2012 17:11:00 +0000
(17:11 +0000)
committer
David 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.
llvm-svn: 157398
llvm/lib/AsmParser/LLLexer.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/AsmParser/LLLexer.cpp
b/llvm/lib/AsmParser/LLLexer.cpp
index
e718069
..
dabcbaa
100644
(file)
--- a/
llvm/lib/AsmParser/LLLexer.cpp
+++ b/
llvm/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';