]> granicus.if.org Git - clang/commitdiff
When we de-serialize an Objective-C protocol, hand it to the AST consumer so that...
authorDouglas Gregor <dgregor@apple.com>
Fri, 24 Apr 2009 23:42:14 +0000 (23:42 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 24 Apr 2009 23:42:14 +0000 (23:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70003 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/PCHReader.cpp

index bbe92a0329ef2bc48818e728cfcf9af32ccee41e..66f65dbb0bd0968bc8362eeb94f1122a0992c1fc 100644 (file)
@@ -2595,6 +2595,9 @@ Decl *PCHReader::ReadDeclRecord(uint64_t Offset, unsigned Index) {
         DeclGroupRef DG(Func);
         Consumer->HandleTopLevelDecl(DG);
       }
+    } else if (isa<ObjCProtocolDecl>(D)) {
+      DeclGroupRef DG(D);
+      Consumer->HandleTopLevelDecl(DG);
     }
   }