references (to match gcc).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55760
91177308-0d34-0410-b5e6-
96231b3b80d8
llvm::Value *CGObjCMac::GenerateProtocolRef(llvm::IRBuilder<> &Builder,
const ObjCProtocolDecl *PD) {
+ // FIXME: I don't understand why gcc generates this, or where it is
+ // resolved. Investigate. Its also wasteful to look this up over and
+ // over.
+ LazySymbols.insert(&CGM.getContext().Idents.get("Protocol"));
+
return llvm::ConstantExpr::getBitCast(GetProtocolRef(PD),
ObjCTypes.ExternalProtocolPtrTy);
}