Stop treating extension keywords as 'interesting'; we don't allow the extension

flag to change between serialization and deserialization, so it does not
require the identifier to be serialized.

llvm-svn: 242567
This commit is contained in:
Richard Smith 2015-07-17 20:19:56 +00:00
parent 205d6189b4
commit cab8980229
2 changed files with 2 additions and 4 deletions

View File

@ -736,11 +736,10 @@ ASTIdentifierLookupTraitBase::ReadKey(const unsigned char* d, unsigned n) {
/// \brief Whether the given identifier is "interesting".
static bool isInterestingIdentifier(IdentifierInfo &II) {
return II.isPoisoned() ||
II.isExtensionToken() ||
return II.hadMacroDefinition() ||
II.isPoisoned() ||
II.getObjCOrBuiltinID() ||
II.hasRevertedTokenIDToIdentifier() ||
II.hadMacroDefinition() ||
II.getFETokenInfo<void>();
}

View File

@ -3110,7 +3110,6 @@ class ASTIdentifierTableTrait {
bool isInterestingIdentifier(IdentifierInfo *II, uint64_t MacroOffset) {
if (MacroOffset ||
II->isPoisoned() ||
II->isExtensionToken() ||
II->getObjCOrBuiltinID() ||
II->hasRevertedTokenIDToIdentifier() ||
II->getFETokenInfo<void>())