[clang] 73f423e - Parenthesized a logical expression.
Dmitri Gribenko via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 20 05:43:50 PST 2019
Author: Dmitri Gribenko
Date: 2019-12-20T14:36:21+01:00
New Revision: 73f423e739bcb9bee7b73f05d4bcd50782013a8c
URL: https://github.com/llvm/llvm-project/commit/73f423e739bcb9bee7b73f05d4bcd50782013a8c
DIFF: https://github.com/llvm/llvm-project/commit/73f423e739bcb9bee7b73f05d4bcd50782013a8c.diff
LOG: Parenthesized a logical expression.
This change fixes a warning on the ppc64be buildbot.
Added:
Modified:
clang/lib/Tooling/Syntax/Tokens.cpp
Removed:
################################################################################
diff --git a/clang/lib/Tooling/Syntax/Tokens.cpp b/clang/lib/Tooling/Syntax/Tokens.cpp
index 39d6dba99ec3..3df1c064923a 100644
--- a/clang/lib/Tooling/Syntax/Tokens.cpp
+++ b/clang/lib/Tooling/Syntax/Tokens.cpp
@@ -67,7 +67,7 @@ FileRange syntax::Token::range(const SourceManager &SM,
auto F = First.range(SM);
auto L = Last.range(SM);
assert(F.file() == L.file() && "tokens from
diff erent files");
- assert(F == L || F.endOffset() <= L.beginOffset() && "wrong order of tokens");
+ assert((F == L || F.endOffset() <= L.beginOffset()) && "wrong order of tokens");
return FileRange(F.file(), F.beginOffset(), L.endOffset());
}
More information about the cfe-commits
mailing list