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

Bill Wendling isanbard at gmail.com
Tue Apr 29 17:15:25 PDT 2008


Author: void
Date: Tue Apr 29 19:15:25 2008
New Revision: 50460

URL: http://llvm.org/viewvc/llvm-project?rev=50460&view=rev
Log:
Porting r50459 from Tak to mainline:
For classlist references, we need to reset the initializer. Otherwise, we get
null values.

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=50460&r1=50459&r2=50460&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.2/trunk/gcc/objc/objc-act.c Tue Apr 29 19:15:25 2008
@@ -5399,6 +5399,13 @@
 	  expr = convert (objc_class_type, build_fold_addr_expr (expr));
 	}
       finish_var_decl (decl, expr);
+      /* LLVM LOCAL begin - radar 5720120 */
+#ifdef ENABLE_LLVM
+      /* Reset the initializer for this reference as it most likely changed.  */
+      if (!optimize)
+        reset_initializer_llvm(decl);
+#endif
+      /* LLVM LOCAL end - radar 5720120 */
     }
 }
 





More information about the llvm-commits mailing list