]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/java/class.c
Remove unnecessary VEC function overloads.
[thirdparty/gcc.git] / gcc / java / class.c
index f806cea141488542fd962c9ab7596211b7dab0c5..a89b83183b62622feac1e0c5c90cdc38f5969aa9 100644 (file)
@@ -2198,9 +2198,10 @@ make_class_data (tree type)
 
       for (i = 0; i < count; i++)
        {
-         constructor_elt *elt = VEC_quick_push (constructor_elt, v, NULL);
-         elt->index = build_int_cst (sizetype, i);
-         elt->value = build_int_cstu (byte_type_node, data[i]);
+         constructor_elt elt;
+         elt.index = build_int_cst (sizetype, i);
+         elt.value = build_int_cstu (byte_type_node, data[i]);
+         VEC_quick_push (constructor_elt, v, elt);
        }
 
       DECL_INITIAL (array) = build_constructor (type, v);