[cfe-commits] r50915 - /cfe/trunk/Driver/RewriteObjC.cpp

Steve Naroff snaroff at apple.com
Fri May 9 14:17:57 PDT 2008


Author: snaroff
Date: Fri May  9 16:17:56 2008
New Revision: 50915

URL: http://llvm.org/viewvc/llvm-project?rev=50915&view=rev
Log:
Fix <rdar://problem/5924225> clang ObjC rewriter: objc_exception_throw declaration in preamble does not match objc/objc-exception.h.

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=50915&r1=50914&r2=50915&view=diff

==============================================================================
--- cfe/trunk/Driver/RewriteObjC.cpp (original)
+++ cfe/trunk/Driver/RewriteObjC.cpp Fri May  9 16:17:56 2008
@@ -328,7 +328,7 @@
   Preamble += "__OBJC_RW_EXTERN void objc_exception_try_exit(void *);\n";
   Preamble += "__OBJC_RW_EXTERN struct objc_object *objc_exception_extract(void *);\n";
   Preamble += "__OBJC_RW_EXTERN int objc_exception_match";
-  Preamble += "(struct objc_class *, struct objc_object *, ...);\n";
+  Preamble += "(struct objc_class *, struct objc_object *);\n";
   Preamble += "__OBJC_RW_EXTERN Protocol *objc_getProtocol(const char *);\n";
   if (LangOpts.Microsoft) 
     Preamble += "#undef __OBJC_RW_EXTERN\n";





More information about the cfe-commits mailing list