na->tv = ca->tv;
if (ca->old_ir) {
- na->old_ir = calloc(1, sizeof(*(ca->old_ir)));
+ na->old_ir = xcalloc(1, sizeof(*(ca->old_ir)));
memcpy(na->old_ir, ca->old_ir, sizeof(*(ca->old_ir)));
}
else {
case iro_SymConst:
attr->tp = asmop_SymConst;
attr->tv = NULL;
- attr->old_ir = calloc(1, sizeof(*cnst));
+ attr->old_ir = xcalloc(1, sizeof(*cnst));
memcpy(attr->old_ir, cnst, sizeof(*cnst));
break;
case iro_Unknown: