- fixed off-by-one error after phase refactoring
[libfirm] / ir / opt / dead_code_elimination.c
index 8755653..f212029 100644 (file)
@@ -47,7 +47,7 @@
 #include "pmap.h"
 
 /** a pointer to the new phases */
-static ir_phase *new_phases[PHASE_LAST];
+static ir_phase *new_phases[PHASE_LAST + 1];
 
 /**
  * Reroute the inputs of a node from nodes in the old graph to copied nodes in