Remove an unused bit from the serialized IdentifierInfo
authorDouglas Gregor <dgregor@apple.com>
Thu, 11 Oct 2012 00:48:48 +0000 (00:48 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 11 Oct 2012 00:48:48 +0000 (00:48 +0000)
llvm-svn: 165683

clang/lib/Lex/PPMacroExpansion.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp

index 013178c..8db74f2 100644 (file)
@@ -97,7 +97,7 @@ void Preprocessor::addLoadedMacroInfo(IdentifierInfo *II, MacroInfo *MI) {
              PrevPrev->isDefined());
 
     // FIXME: Actually use the ambiguity information for something.
-    
+
     // Wire this macro information into the chain.
     MI->setPreviousDefinition(Prev->getPreviousDefinition());
     Prev->setPreviousDefinition(MI);
index 6e3eee9..f23c099 100644 (file)
@@ -540,8 +540,6 @@ IdentifierInfo *ASTIdentifierLookupTrait::ReadData(const internal_key_type& k,
   Bits >>= 1;
   bool hadMacroDefinition = Bits & 0x01;
   Bits >>= 1;
-  bool hasMacroDefinition = Bits & 0x01;
-  Bits >>= 1;
 
   assert(Bits == 0 && "Extra bits in the identifier?");
   DataLen -= 8;
index 98e841c..9f47892 100644 (file)
@@ -2632,8 +2632,6 @@ public:
     clang::io::Emit16(Out, Bits);
     Bits = 0;
     bool HadMacroDefinition = hadMacroDefinition(II, Macro);
-    bool HasMacroDefinition = HadMacroDefinition && II->hasMacroDefinition();
-    Bits = (Bits << 1) | unsigned(HasMacroDefinition);
     Bits = (Bits << 1) | unsigned(HadMacroDefinition);
     Bits = (Bits << 1) | unsigned(II->isExtensionToken());
     Bits = (Bits << 1) | unsigned(II->isPoisoned());