Removed mode parameter from Const and Const_type constructors (now derived from tarval)
[libfirm] / ir / opt / opt_osr.c
index 54e6921..6a3564a 100644 (file)
@@ -1132,7 +1132,7 @@ static ir_node *applyOneEdge(ir_node *iv, ir_node *rc, LFTR_edge *e, iv_env *env
                        DB((dbg, LEVEL_4, " = OVERFLOW"));
                        return NULL;
                }
-               return new_r_Const(current_ir_graph, get_irn_n(rc, -1), get_tarval_mode(tv), tv);
+               return new_Const(tv);
        }
        return do_apply(e->code, NULL, rc, e->rc, get_irn_mode(rc));
 }