bool is not an extension in C++

llvm-svn: 56103
This commit is contained in:
Douglas Gregor
2008-09-11 12:06:59 +00:00
parent 9396a89899
commit 27a907eb8c

View File

@@ -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) {