[cfe-commits] r56103 - /cfe/trunk/lib/Basic/IdentifierTable.cpp
Douglas Gregor
doug.gregor at gmail.com
Thu Sep 11 05:07:01 PDT 2008
Author: dgregor
Date: Thu Sep 11 07:06:59 2008
New Revision: 56103
URL: http://llvm.org/viewvc/llvm-project?rev=56103&view=rev
Log:
bool is not an extension in C++
Modified:
cfe/trunk/lib/Basic/IdentifierTable.cpp
Modified: cfe/trunk/lib/Basic/IdentifierTable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/IdentifierTable.cpp?rev=56103&r1=56102&r2=56103&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/IdentifierTable.cpp (original)
+++ cfe/trunk/lib/Basic/IdentifierTable.cpp Thu Sep 11 07:06:59 2008
@@ -70,7 +70,7 @@
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) {
More information about the cfe-commits
mailing list