]> granicus.if.org Git - clang/commitdiff
Remove bogus cast (<rdar://problem/5874848> clang objc-rewriter: structure with list...
authorSteve Naroff <snaroff@apple.com>
Fri, 18 Apr 2008 22:15:15 +0000 (22:15 +0000)
committerSteve Naroff <snaroff@apple.com>
Fri, 18 Apr 2008 22:15:15 +0000 (22:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49935 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/RewriteObjC.cpp

index c78e51963012f00f267890503ef8e6e365bfc536..8cf98a164362a30c4f7e7b1e0b034f648d58e467 100644 (file)
@@ -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";
     }