{
struct ir_op *op;
- op = (ir_op *) calloc(sizeof(struct ir_op), 1);
+ op = (ir_op *) zmalloc(sizeof(struct ir_op));
if (!op)
return NULL;
switch (child->data_type) {
{
struct ir_op *op;
- op = (ir_op *) calloc(sizeof(struct ir_op), 1);
+ op = (ir_op *) zmalloc(sizeof(struct ir_op));
if (!op)
return NULL;
op->op = IR_OP_LOAD;
{
struct ir_op *op;
- op = (ir_op *) calloc(sizeof(struct ir_op), 1);
+ op = (ir_op *) zmalloc(sizeof(struct ir_op));
if (!op)
return NULL;
op->op = IR_OP_LOAD;
{
struct ir_op *op;
- op = (ir_op *) calloc(sizeof(struct ir_op), 1);
+ op = (ir_op *) zmalloc(sizeof(struct ir_op));
if (!op)
return NULL;
op->op = IR_OP_LOAD;
node = load_expression_get_forward_chain(node);
if (!node)
return NULL;
- load_exp = (ir_load_expression *) calloc(sizeof(struct ir_load_expression), 1);
+ load_exp = (ir_load_expression *) zmalloc(sizeof(struct ir_load_expression));
if (!load_exp)
return NULL;
/* Root */
- load_exp_op = (ir_load_expression_op *) calloc(sizeof(struct ir_load_expression_op), 1);
+ load_exp_op = (ir_load_expression_op *) zmalloc(sizeof(struct ir_load_expression_op));
if (!load_exp_op)
goto error;
load_exp->child = load_exp_op;
struct filter_node *bracket_node;
prev_op = load_exp_op;
- load_exp_op = (ir_load_expression_op *) calloc(sizeof(struct ir_load_expression_op), 1);
+ load_exp_op = (ir_load_expression_op *) zmalloc(sizeof(struct ir_load_expression_op));
if (!load_exp_op)
goto error;
prev_op->next = load_exp_op;
fprintf(stderr, "[error] Expecting constant index in array expression\n");
goto error;
}
- load_exp_op = (ir_load_expression_op *) calloc(sizeof(struct ir_load_expression_op), 1);
+ load_exp_op = (ir_load_expression_op *) zmalloc(sizeof(struct ir_load_expression_op));
if (!load_exp_op)
goto error;
prev_op->next = load_exp_op;
}
/* Add final load field */
prev_op = load_exp_op;
- load_exp_op = (ir_load_expression_op *) calloc(sizeof(struct ir_load_expression_op), 1);
+ load_exp_op = (ir_load_expression_op *) zmalloc(sizeof(struct ir_load_expression_op));
if (!load_exp_op)
goto error;
prev_op->next = load_exp_op;
{
struct ir_op *op;
- op = (ir_op *) calloc(sizeof(struct ir_op), 1);
+ op = (ir_op *) zmalloc(sizeof(struct ir_op));
if (!op)
return NULL;
op->op = IR_OP_LOAD;
goto error;
}
- op = (ir_op *) calloc(sizeof(struct ir_op), 1);
+ op = (ir_op *) zmalloc(sizeof(struct ir_op));
if (!op)
return NULL;
op->op = IR_OP_UNARY;
goto error;
}
- op = (ir_op *) calloc(sizeof(struct ir_op), 1);
+ op = (ir_op *) zmalloc(sizeof(struct ir_op));
if (!op)
return NULL;
op->op = IR_OP_BINARY;
goto error;
}
- op = (ir_op *) calloc(sizeof(struct ir_op), 1);
+ op = (ir_op *) zmalloc(sizeof(struct ir_op));
if (!op)
return NULL;
op->op = IR_OP_LOGICAL;
goto error;
}
- op = (ir_op *) calloc(sizeof(struct ir_op), 1);
+ op = (ir_op *) zmalloc(sizeof(struct ir_op));
if (!op)
return NULL;
op->op = IR_OP_BINARY;