else if (IS_FUNC(sym->type)) {
// Functions are special. The symbol is constant and available.
aop = _new(AOP_TYPE_IMMEDIATE);
- aop->u.immediate = gc_strdup(sym->rname);
+ aop->u.immediate = Safe_strdup(sym->rname);
// PENDING: Size of a function pointer.
aop->size = 2;
}
sprintf(s, "%s", OP_SYMBOL(IC_LEFT(ic))->rname);
aop->size = getSize(sym->type);
- aop->u.immediate = gc_strdup(buffer);
+ aop->u.immediate = Safe_strdup(buffer);
return aop;
};
asmop *_newForTemporary(operand *op, iCode *ic)
{
symbol *sym = OP_SYMBOL(op);
- asmop *aop;
+ asmop *aop = NULL;
if (sym->regType == REG_TYPE_CND) {
// Conditionals have no size due to being stored in carry.