fix for const commit
[libfirm] / ir / ana / irconsconfirm.c
index 61f4f4e..3a3375a 100644 (file)
@@ -454,12 +454,13 @@ void construct_confirms(ir_graph *irg) {
                edges_deactivate(irg);
 }  /* construct_confirms */
 
+#if 0
 /**
  * Post-walker: Remove Confirm nodes
  */
 static void rem_Confirm(ir_node *n, void *env) {
        (void) env;
-       if (get_irn_op(n) == op_Confirm) {
+       if (is_Confirm(n)) {
                ir_node *value = get_Confirm_value(n);
                if (value != n)
                        exchange(n, value);
@@ -472,6 +473,7 @@ static void rem_Confirm(ir_node *n, void *env) {
                }
        }
 }  /* rem_Confirm */
+#endif
 
 /*
  * Remove all Confirm nodes from a graph.