diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-09-11 12:06:59 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-09-11 12:06:59 +0000 |
commit | 7de3d7940d9904b1b9fff81ecfe3fe132a71a6ef (patch) | |
tree | 3cd1d4e75ce5a524e16bca90c32aedbe53957c54 /lib/Basic/IdentifierTable.cpp | |
parent | dde0a94120915fa925d1ffcdb997c7b44dc9fa21 (diff) |
bool is not an extension in C++
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56103 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/IdentifierTable.cpp')
-rw-r--r-- | lib/Basic/IdentifierTable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |