[cfe-commits] r49935 - /cfe/trunk/Driver/RewriteObjC.cpp
Steve Naroff
snaroff at apple.com
Fri Apr 18 15:15:15 PDT 2008
Author: snaroff
Date: Fri Apr 18 17:15:15 2008
New Revision: 49935
URL: http://llvm.org/viewvc/llvm-project?rev=49935&view=rev
Log:
Remove bogus cast (<rdar://problem/5874848> clang objc-rewriter: structure with list of protocols has wrong cast).
Modified:
cfe/trunk/Driver/RewriteObjC.cpp
Modified: cfe/trunk/Driver/RewriteObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteObjC.cpp?rev=49935&r1=49934&r2=49935&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteObjC.cpp (original)
+++ cfe/trunk/Driver/RewriteObjC.cpp Fri Apr 18 17:15:15 2008
@@ -2539,7 +2539,7 @@
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";
}
More information about the cfe-commits
mailing list