fix parameter loads not being rematerialized
[libfirm] / ir / ana / height.c
index df1bae3..43e06a2 100644 (file)
@@ -54,8 +54,8 @@ typedef struct {
 
 static void *irn_height_init(ir_phase *ph, ir_node *irn, void *data)
 {
-       (void) irn;
        irn_height_t *h = data ? data : phase_alloc(ph, sizeof(h[0]));
+       (void)irn;
        memset(h, 0, sizeof(h[0]));
        return h;
 }