]> granicus.if.org Git - clang/commitdiff
Don't bother rewriting an Objective-C class or protocol declaration to the module...
authorDouglas Gregor <dgregor@apple.com>
Sun, 1 Jan 2012 20:35:33 +0000 (20:35 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 1 Jan 2012 20:35:33 +0000 (20:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147414 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTWriter.cpp

index 509200a696e5607fa68e7c05d66754cc64d8e8c3..7a3916f91bc47f67d548d5e84628baac4b1a86fa 100644 (file)
@@ -4428,8 +4428,6 @@ void ASTWriter::AddedObjCCategoryToInterface(const ObjCCategoryDecl *CatD,
 
 void ASTWriter::CompletedObjCForwardRef(const ObjCContainerDecl *D) {
   assert(!WritingAST && "Already writing the AST!");
-  if (D->isFromASTFile())
-    RewriteDecl(D);
 
   if (const ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(D)) {
     for (ObjCInterfaceDecl::redecl_iterator I = ID->redecls_begin(),