From: Douglas Gregor Date: Sun, 1 Jan 2012 20:35:33 +0000 (+0000) Subject: Don't bother rewriting an Objective-C class or protocol declaration to the module... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6387f3b447015073192f1e1cafec3ebd0294c8c;p=clang Don't bother rewriting an Objective-C class or protocol declaration to the module file when we've merely added a definition git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147414 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp index 509200a696..7a3916f91b 100644 --- a/lib/Serialization/ASTWriter.cpp +++ b/lib/Serialization/ASTWriter.cpp @@ -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(D)) { for (ObjCInterfaceDecl::redecl_iterator I = ID->redecls_begin(),