          if (ND->getDeclName() != This->Name) {
            assert(!This->Name.getCXXNameType().isNull() && 
                   "Name mismatch without a type");
-@@ -5569,7 +5572,11 @@
+@@ -5571,7 +5574,11 @@
      ValueDecl *D = cast<ValueDecl>(GetDecl(PendingInstantiations[Idx++]));
      SourceLocation Loc
        = SourceLocation::getFromRawEncoding(PendingInstantiations[Idx++]);

   }  
   PendingInstantiations.clear();
 }
@@ -6466,6 +6473,9 @@
 }
 
 ASTReader::~ASTReader() {

            E = PendingVisibleUpdates.end();
Index: tools/clang/lib/Serialization/ASTReaderDecl.cpp
===================================================================
--- tools/clang/lib/Serialization/ASTReaderDecl.cpp	(revision 161101)
+++ tools/clang/lib/Serialization/ASTReaderDecl.cpp	(working copy)
@@ -348,6 +348,13 @@
     DeclContext *LexicalDC = ReadDeclAs<DeclContext>(Record, Idx);
