if (mode == lenv->params->high_signed ||
mode == lenv->params->high_unsigned) {
/* ok, found a node that will be lowered */
- link = obstack_alloc(&lenv->obst, sizeof(*link));
-
- memset(link, 0, sizeof(*link));
+ link = OALLOCZ(&lenv->obst, node_entry_t);
idx = get_irn_idx(node);
if (idx >= lenv->n_entries) {
/**
* Creates a wrapper around lower_dw_ops().
*/
-static void pass_wrapper(ir_prog *irp, void *context)
+static int pass_wrapper(ir_prog *irp, void *context)
{
struct pass_t *pass = context;
(void)irp;
lower_dw_ops(pass->param);
-} /* pass_wrapper */
+ return 0;
+}
ir_prog_pass_t *lower_dw_ops_pass(const char *name, const lwrdw_param_t *param) {
struct pass_t *pass = XMALLOCZ(struct pass_t);