replace XCALLOC with XCNEWVEC or XCNEW
[deliverable/binutils-gdb.git] / gdb / opencl-lang.c
index 4bcaf7ecaecf8cf056f98fc94c7b2e11b017eb2c..2dd76fac36eeb4694e4611d3ba62595f99bf758d 100644 (file)
@@ -160,7 +160,7 @@ allocate_lval_closure (int *indices, int n, struct value *val)
 
   c->refc = 1;
   c->n = n;
-  c->indices = XCALLOC (n, int);
+  c->indices = XCNEWVEC (int, n);
   memcpy (c->indices, indices, n * sizeof (int));
   value_incref (val); /* Increment the reference counter of the value.  */
   c->val = val;
This page took 0.023276 seconds and 4 git commands to generate.