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

Devang Patel dpatel at apple.com
Thu Nov 8 17:40:58 PST 2007


Author: dpatel
Date: Thu Nov  8 19:40:58 2007
New Revision: 43925

URL: http://llvm.org/viewvc/llvm-project?rev=43925&view=rev
Log:
Use appropriate type for null initializer.


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=43925&r1=43924&r2=43925&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.2/trunk/gcc/objc/objc-act.c Thu Nov  8 19:40:58 2007
@@ -18527,7 +18527,11 @@
   constructor_fields = TYPE_FIELDS (fast_enum_state_type);
   /* __objcFastEnumerationState enumState = { 0 }; */
   *enumState_decl = objc_create_named_tmp_var (fast_enum_state_type, "cstar");
-  initlist = build_tree_list (constructor_fields, build_int_cst (NULL_TREE, 0));
+  /* LLVM LOCAL begin */
+  initlist = build_tree_list (constructor_fields, 
+                              convert (TREE_TYPE(constructor_fields),
+                                       build_int_cst (NULL_TREE, 0)));
+  /* LLVM LOCAL end */
   init = objc_build_constructor (fast_enum_state_type, initlist);
   DECL_INITIAL (*enumState_decl) = init;
 





More information about the llvm-commits mailing list