[llvm-commits] [llvm-gcc-4.2] r50281 - /llvm-gcc-4.2/trunk/gcc/objc/objc-act.c

Bill Wendling isanbard at gmail.com
Fri Apr 25 11:37:42 PDT 2008


Author: void
Date: Fri Apr 25 13:37:41 2008
New Revision: 50281

URL: http://llvm.org/viewvc/llvm-project?rev=50281&view=rev
Log:
Porting r50280 from Tak to mainline.

Modified:
    llvm-gcc-4.2/trunk/gcc/objc/objc-act.c

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

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.2/trunk/gcc/objc/objc-act.c Fri Apr 25 13:37:41 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