fixed debug output of unary x87 nodes
[libfirm] / ir / be / beifg_pointer.c
index c1b06e3..589e367 100644 (file)
@@ -70,7 +70,7 @@ typedef struct _ptr_iter_t {
 
 /* PRIVATE FUNCTIONS */
 
-static void *ptr_irn_data_init(phase_t *ph, const ir_node *irn, void *data)
+static void *ptr_irn_data_init(phase_t *ph, ir_node *irn, void *data)
 {
        ptr_head_t *head = phase_alloc(ph, sizeof(*head));
        INIT_LIST_HEAD(&head->list);
@@ -597,8 +597,9 @@ static void ifg_pointer_free(void *self)
        free(self);
 }
 
-static int ifg_pointer_connected(const ifg_pointer_t *ifg, const ir_node *a, const ir_node *b)
+static int ifg_pointer_connected(const void *self, const ir_node *a, const ir_node *b)
 {
+       const ifg_pointer_t *ifg = self;
        int connected = -1;
        ptr_iter_t it;
        ir_node *irn = NULL;