replace XZALLOC with XCNEW
[deliverable/binutils-gdb.git] / gdb / eval.c
index bfbe319b5064b53894f07c2efe83b19cbc3cc977..949f76cf2ef9dff2a17e259446898068ef6f48a7 100644 (file)
@@ -660,8 +660,8 @@ ptrmath_type_p (const struct language_defn *lang, struct type *type)
 static struct type *
 make_params (int num_types, struct type **param_types)
 {
-  struct type *type = XZALLOC (struct type);
-  TYPE_MAIN_TYPE (type) = XZALLOC (struct main_type);
+  struct type *type = XCNEW (struct type);
+  TYPE_MAIN_TYPE (type) = XCNEW (struct main_type);
   TYPE_LENGTH (type) = 1;
   TYPE_CODE (type) = TYPE_CODE_METHOD;
   TYPE_VPTR_FIELDNO (type) = -1;
This page took 0.025062 seconds and 4 git commands to generate.