mismatch code for VECs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159834
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-05-25 Nathan Froyd <froydnj@codesourcery.com>
+
+ * objc-act.c (objc_build_constructor): Adjust OBJCPLUS impedance
+ mismatch code for VECs.
+
2010-05-25 Nathan Froyd <froydnj@codesourcery.com>
* objc-act.c (objc_build_constructor): Take a VEC instead of a tree.
#ifdef OBJCPLUS
/* Adjust for impedance mismatch. We should figure out how to build
CONSTRUCTORs that consistently please both the C and C++ gods. */
- if (!TREE_PURPOSE (elts))
+ if (!VEC_index (constructor_elt, elts, 0)->index)
TREE_TYPE (constructor) = init_list_type_node;
#endif