#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
if (old_ph == NULL)
continue;
- phase_free(old_ph);
+ /* Matze: commented out for now: This is a memory leak, but for a real
+ * fix we must not create new phases here, but reuse the old phases
+ * and just create a new data array */
+ /* phase_free(old_ph); */
irg->phases[i] = new_phases[i];
}
}