mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 17:07:06 +08:00
bool is not an extension in C++
llvm-svn: 56103
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user