[cfe-commits] r125713 - /cfe/trunk/include/clang/Basic/IdentifierTable.h

Ted Kremenek kremenek at apple.com
Wed Feb 16 18:43:01 PST 2011


Author: kremenek
Date: Wed Feb 16 20:43:00 2011
New Revision: 125713

URL: http://llvm.org/viewvc/llvm-project?rev=125713&view=rev
Log:
Bump up IdentifierInfo::ObjCOrBuiltinID to use 11 bits instead of 10.  Fixes PR 9231.

Apparently we can blow out the number of builtin IDs on FreeBSD with only 10 bits.

Modified:
    cfe/trunk/include/clang/Basic/IdentifierTable.h

Modified: cfe/trunk/include/clang/Basic/IdentifierTable.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/IdentifierTable.h?rev=125713&r1=125712&r2=125713&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/IdentifierTable.h (original)
+++ cfe/trunk/include/clang/Basic/IdentifierTable.h Wed Feb 16 20:43:00 2011
@@ -54,7 +54,7 @@
   // Objective-C keyword ('protocol' in '@protocol') or builtin (__builtin_inf).
   // First NUM_OBJC_KEYWORDS values are for Objective-C, the remaining values
   // are for builtins.
-  unsigned ObjCOrBuiltinID    :10;
+  unsigned ObjCOrBuiltinID    :11;
   bool HasMacro               : 1; // True if there is a #define for this.
   bool IsExtension            : 1; // True if identifier is a lang extension.
   bool IsPoisoned             : 1; // True if identifier is poisoned.
@@ -64,7 +64,7 @@
                                    // file and wasn't modified since.
   bool RevertedTokenID        : 1; // True if RevertTokenIDToIdentifier was
                                    // called.
-  // 7 bits left in 32-bit word.
+  // 6 bits left in 32-bit word.
   void *FETokenInfo;               // Managed by the language front-end.
   llvm::StringMapEntry<IdentifierInfo*> *Entry;
 





More information about the cfe-commits mailing list