summaryrefslogtreecommitdiff
path: root/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-02-24 04:35:58 +0000
committerAlp Toker <alp@nuanti.com>2014-02-24 04:35:58 +0000
commit270d39edd522164bf7f8e5f8c7e6dffca1c73664 (patch)
treea01418bcb1f0bec2fc91eb4851c2d040bbd299d4 /lib/Lex/Preprocessor.cpp
parent491dd1c4d126187cfe3798b22f9109b7219fce7f (diff)
downloadclang-270d39edd522164bf7f8e5f8c7e6dffca1c73664.tar.gz
clang-270d39edd522164bf7f8e5f8c7e6dffca1c73664.tar.bz2
clang-270d39edd522164bf7f8e5f8c7e6dffca1c73664.tar.xz
Use a more conventional logical op instead of bitwise and
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r--lib/Lex/Preprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp
index 1e54ab3725..e7d844087c 100644
--- a/lib/Lex/Preprocessor.cpp
+++ b/lib/Lex/Preprocessor.cpp
@@ -627,7 +627,7 @@ bool Preprocessor::HandleIdentifier(Token &Identifier) {
// name of a macro.
// FIXME: This warning is disabled in cases where it shouldn't be, like
// "#define constexpr constexpr", "int constexpr;"
- if (II.isCXX11CompatKeyword() & !DisableMacroExpansion) {
+ if (II.isCXX11CompatKeyword() && !DisableMacroExpansion) {
Diag(Identifier, diag::warn_cxx11_keyword) << II.getName();
// Don't diagnose this keyword again in this translation unit.
II.setIsCXX11CompatKeyword(false);