mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-11 18:36:55 +00:00
[clang-tidy] Fix "expression is redundant [misc-redundant-expression]" warning. NFCI. (PR44768)
We only accept tok::TokenKind::comment enum values so no need to add other cases. Seems to be a cut+paste typo.
This commit is contained in:
parent
4f9f5d09de
commit
17785cc7a1
@ -42,7 +42,7 @@ SourceLocation forwardSkipWhitespaceAndComments(SourceLocation Loc,
|
||||
Loc = Loc.getLocWithOffset(1);
|
||||
|
||||
tok::TokenKind TokKind = getTokenKind(Loc, SM, Context);
|
||||
if (TokKind == tok::NUM_TOKENS || TokKind != tok::comment)
|
||||
if (TokKind != tok::comment)
|
||||
return Loc;
|
||||
|
||||
// Fast-forward current token.
|
||||
|
Loading…
x
Reference in New Issue
Block a user