From: Douglas Gregor Date: Thu, 11 Sep 2008 12:06:59 +0000 (+0000) Subject: bool is not an extension in C++ X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7de3d7940d9904b1b9fff81ecfe3fe132a71a6ef;p=clang bool is not an extension in C++ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56103 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/IdentifierTable.cpp b/lib/Basic/IdentifierTable.cpp index 65e984a0f7..e650993bd0 100644 --- a/lib/Basic/IdentifierTable.cpp +++ b/lib/Basic/IdentifierTable.cpp @@ -70,7 +70,7 @@ static void AddKeyword(const char *Keyword, unsigned KWLen, const LangOptions &LangOpts, IdentifierTable &Table) { int Flags = 0; if (BoolSupport != 0) { - Flags = LangOpts.Boolean ? BoolSupport : 2; + Flags = LangOpts.CPlusPlus? 0 : LangOpts.Boolean ? BoolSupport : 2; } else if (LangOpts.CPlusPlus) { Flags = LangOpts.CPlusPlus0x ? CXX0x : CXX; } else if (LangOpts.C99) {