From 7de3d7940d9904b1b9fff81ecfe3fe132a71a6ef Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 11 Sep 2008 12:06:59 +0000 Subject: [PATCH] bool is not an extension in C++ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56103 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/IdentifierTable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.1