[llvm-commits] [llvm-gcc-4.2] r50280 - /llvm-gcc-4.2/branches/Apple/Tak/gcc/objc/objc-act.c

Bill Wendling isanbard at gmail.com
Fri Apr 25 11:34:38 PDT 2008


Author: void
Date: Fri Apr 25 13:34:37 2008
New Revision: 50280

URL: http://llvm.org/viewvc/llvm-project?rev=50280&view=rev
Log:
Reset the initializer for message references. This helps
<rdar://problem/5720120>, though doesn't completely fix it.

Modified:
    llvm-gcc-4.2/branches/Apple/Tak/gcc/objc/objc-act.c

Modified: llvm-gcc-4.2/branches/Apple/Tak/gcc/objc/objc-act.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Tak/gcc/objc/objc-act.c?rev=50280&r1=50279&r2=50280&view=diff

==============================================================================
--- llvm-gcc-4.2/branches/Apple/Tak/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.2/branches/Apple/Tak/gcc/objc/objc-act.c Fri Apr 25 13:34:37 2008
@@ -5801,6 +5801,12 @@
       constructor = objc_build_constructor (struct_type, nreverse (initializer));
       TREE_INVARIANT (constructor) = true;
       finish_var_decl (decl, constructor); 
+      /* APPLE LOCAL LLVM begin - radar 5720120 */
+#ifdef ENABLE_LLVM
+      /* Reset the initializer for this reference as it most likely changed.  */
+      reset_initializer_llvm(decl);
+#endif
+      /* APPLE LOCAL LLVM end - radar 5720120 */
     }
 }
 





More information about the llvm-commits mailing list