]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* objc-act.c (objc_build_constructor): Adjust OBJCPLUS impedance
authorfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 May 2010 16:59:56 +0000 (16:59 +0000)
committerfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 May 2010 16:59:56 +0000 (16:59 +0000)
mismatch code for VECs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159834 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/objc/ChangeLog
gcc/objc/objc-act.c

index c78ca3753971da020f01ff9e907d4761dc35cac2..743764b69fcc2dcc5b613512182221bd6b2339aa 100644 (file)
@@ -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.
index db5862f1a5b903635da221bb69f4db58ce4f5900..5961531d69192c5b2e916f845306b96a7f4318fe 100644 (file)
@@ -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