BugFix: turn_into_tuple() now works if edges are activated
[libfirm] / ir / ana / irconsconfirm.c
index 44780c3..3830849 100644 (file)
@@ -23,6 +23,7 @@
 #include "irgmod.h"
 #include "iropt_dbg.h"
 #include "iredges_t.h"
+#include "irgwalk.h"
 #include "irprintf.h"
 
 /**
@@ -39,7 +40,7 @@ typedef struct _env_t {
  *
  * @param block   the block which is entered by the branch
  * @param irn     the node expressing the switch value
- * @param pnc     the branch label
+ * @param nr      the branch label
  * @param env     statistical environment
  *
  * Branch labels are a simple case. We can replace the value
@@ -70,7 +71,7 @@ static void handle_case(ir_node *block, ir_node *irn, long nr, env_t *env)
 
       if (! c) {
         ir_mode *mode = get_irn_mode(irn);
-        type *tp      = get_irn_type(irn);
+        ir_type *tp   = get_irn_type(irn);
         tarval *tv    = new_tarval_from_long(nr, mode);
         c = new_r_Const_type(current_ir_graph, block, mode, tv, tp);
       }