objc-act.c (objc_build_constructor): Adjust OBJCPLUS impedance mismatch code for VECs.
* objc-act.c (objc_build_constructor): Adjust OBJCPLUS impedance mismatch code for VECs. From-SVN: r159834
This commit is contained in:
parent
8352cbb413
commit
263d02e208
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -2086,7 +2086,7 @@ objc_build_constructor (tree type, VEC(constructor_elt,gc) *elts)
|
|||
#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
|
||||
|
||||
|
|
Loading…
Reference in New Issue