[llvm-commits] [llvm-gcc-4.0] r43920 - /llvm-gcc-4.0/trunk/gcc/objc/objc-act.c
Devang Patel
dpatel at apple.com
Thu Nov 8 17:02:00 PST 2007
Author: dpatel
Date: Thu Nov 8 19:02:00 2007
New Revision: 43920
URL: http://llvm.org/viewvc/llvm-project?rev=43920&view=rev
Log:
Use appropriate type for null initializer.
Modified:
llvm-gcc-4.0/trunk/gcc/objc/objc-act.c
Modified: llvm-gcc-4.0/trunk/gcc/objc/objc-act.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/objc/objc-act.c?rev=43920&r1=43919&r2=43920&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.0/trunk/gcc/objc/objc-act.c Thu Nov 8 19:02:00 2007
@@ -18803,7 +18803,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