From: Steve Naroff Date: Fri, 18 Apr 2008 22:15:15 +0000 (+0000) Subject: Remove bogus cast ( clang objc-rewriter: structure with list... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa8ec62bf062eecb78b8ba68c1c1baa40e58014c;p=clang Remove bogus cast ( clang objc-rewriter: structure with list of protocols has wrong cast). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49935 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/RewriteObjC.cpp b/Driver/RewriteObjC.cpp index c78e519630..8cf98a1643 100644 --- a/Driver/RewriteObjC.cpp +++ b/Driver/RewriteObjC.cpp @@ -2539,7 +2539,7 @@ void RewriteObjC::RewriteObjCProtocolsMetaData(ObjCProtocolDecl **Protocols, for (int i = 1; i < NumProtocols; i++) { ObjCProtocolDecl *PDecl = Protocols[i]; - Result += "\t ,(struct _objc_protocol_list*)&_OBJC_PROTOCOL_"; + Result += "\t ,&_OBJC_PROTOCOL_"; Result += PDecl->getName(); Result += "\n"; }