fix abs creation after recent reassoc changes
[libfirm] / ir / be / beschednormal.c
index 74cffb9..ba89e9b 100644 (file)
@@ -132,8 +132,10 @@ static int normal_tree_cost(ir_node* irn)
                        } else if (get_nodes_block(pred) != block) {
                                cost = 1;
                        } else {
+                               flag_and_cost* pred_fc;
+
                                cost = normal_tree_cost(pred);
-                               flag_and_cost* pred_fc = get_irn_link(pred);
+                               pred_fc = get_irn_link(pred);
                                pred_fc->no_root = 1;
 #if defined NORMAL_DBG
                                ir_fprintf(stderr, "%+F says that %+F is no root\n", irn, pred);
@@ -356,7 +358,7 @@ static void *normal_init_block(void *graph_env, ir_node *block)
 }
 
 
-static const list_sched_selector_t normal_selector_struct = {
+const list_sched_selector_t normal_selector = {
        normal_init_graph,
        normal_init_block,
        normal_select,
@@ -368,5 +370,3 @@ static const list_sched_selector_t normal_selector_struct = {
        NULL,              /* finish_block */
        NULL               /* finish_graph */
 };
-
-const list_sched_selector_t *normal_selector = &normal_selector_struct;