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
diff --git a/include/clang/Basic/IdentifierTable.h b/include/clang/Basic/IdentifierTable.h
index fffb504..c71df83 100644
--- a/include/clang/Basic/IdentifierTable.h
+++ b/include/clang/Basic/IdentifierTable.h
@@ -358,8 +358,8 @@
/// change to it should be reflected here.
void RecomputeNeedsHandleIdentifier() {
NeedsHandleIdentifier =
- (isPoisoned() | hasMacroDefinition() | isCPlusPlusOperatorKeyword() |
- isExtensionToken() | isFutureCompatKeyword() || isOutOfDate() ||
+ (isPoisoned() || hasMacroDefinition() || isCPlusPlusOperatorKeyword() ||
+ isExtensionToken() || isFutureCompatKeyword() || isOutOfDate() ||
isModulesImport());
}
};