Sort of a hack. I've managed worse, though.
{
if (index == dv->dynval_in_param.param_index)
{
- param = save_param (param_iter);
+ param = param_iter;
break;
}
index++;
}
aop_assert (param != NULL);
+
+ /* HACK: It's not necessary to save the parameter if this is an
+ entry join point (there won't be any time for the variable to
+ change). That's good because save_param() doesn't work right if
+ we're in the process of an aop_duplicate(). */
+ if (jp->pc->kind != ATP_ENTRY)
+ param = save_param (param);
+
return param;
}