[PATCH] D49462: [ObjC] Error out when using forward-declared protocol in a @protocol expression

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 17 12:22:11 PDT 2018


rjmccall added inline comments.


================
Comment at: lib/CodeGen/CGObjCMac.cpp:6788
+         "emitting protocol metadata without definition");
+  PD = PD->getDefinition();
 
----------------
What happens in the `@implementation` case (the one that we're not diagnosing yet) when the protocol is a forward declaration?


Repository:
  rC Clang

https://reviews.llvm.org/D49462





More information about the cfe-commits mailing list