diff options
| author | Alp Toker <alp@nuanti.com> | 2014-02-24 04:35:58 +0000 |
|---|---|---|
| committer | Alp Toker <alp@nuanti.com> | 2014-02-24 04:35:58 +0000 |
| commit | 270d39edd522164bf7f8e5f8c7e6dffca1c73664 (patch) | |
| tree | a01418bcb1f0bec2fc91eb4851c2d040bbd299d4 /lib/Lex/Preprocessor.cpp | |
| parent | 491dd1c4d126187cfe3798b22f9109b7219fce7f (diff) | |
| download | clang-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.cpp | 2 |
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); |
