From fa8ec62bf062eecb78b8ba68c1c1baa40e58014c Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Fri, 18 Apr 2008 22:15:15 +0000 Subject: [PATCH] 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 --- Driver/RewriteObjC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- 2.40.0