implement PopMem, PopEbp, fix push register, fix some unops
[libfirm] / ir / lower / lower_dw.c
index a0a060f..9ce41fb 100644 (file)
@@ -281,9 +281,7 @@ static void prepare_links(ir_node *node, void *env)
        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) {
@@ -2694,13 +2692,14 @@ struct pass_t {
 /**
  * Creates a wrapper around lower_dw_ops().
  */
-static int 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);
        return 0;
-}  /* pass_wrapper */
+}
 
 ir_prog_pass_t *lower_dw_ops_pass(const char *name, const lwrdw_param_t *param) {
        struct pass_t *pass = XMALLOCZ(struct pass_t);