aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2022-02-03 19:45:22 -0800
committerPirama Arumuga Nainar <pirama@google.com>2022-02-03 20:05:11 -0800
commitf30c8e651d6b4a923bdafab1be297c7ca40690c6 (patch)
tree34058fb1a9de5911041aa9358af0056ec19e118a
parentdcd0be3ce5522089e7ead1469ef5259f3467bc14 (diff)
downloadclang-f30c8e651d6b4a923bdafab1be297c7ca40690c6.tar.gz
Fix -Wbitwise-instead-of-logical
Bug: http://b/215753485 None of the operands have side effects so it's safe to fix this warning. This fires when compiling frameworks/compile/slang which directly include this header. Test: build with new clang. Change-Id: I6669aa6eae004b1930e522f69259748780e7a842
-rw-r--r--include/clang/Basic/IdentifierTable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/IdentifierTable.h b/include/clang/Basic/IdentifierTable.h
index fffb50493b..c71df832ac 100644
--- a/include/clang/Basic/IdentifierTable.h
+++ b/include/clang/Basic/IdentifierTable.h
@@ -358,8 +358,8 @@ private:
/// change to it should be reflected here.
void RecomputeNeedsHandleIdentifier() {
NeedsHandleIdentifier =
- (isPoisoned() | hasMacroDefinition() | isCPlusPlusOperatorKeyword() |
- isExtensionToken() | isFutureCompatKeyword() || isOutOfDate() ||
+ (isPoisoned() || hasMacroDefinition() || isCPlusPlusOperatorKeyword() ||
+ isExtensionToken() || isFutureCompatKeyword() || isOutOfDate() ||
isModulesImport());
}
};