(void) env;
/* preserve the node numbers for easier debugging */
new_node->node_nr = node->node_nr;
/* copy phase information for this node */
(void) env;
/* preserve the node numbers for easier debugging */
new_node->node_nr = node->node_nr;
/* copy phase information for this node */
/* init the new_phases array */
/* TODO: this is wrong, it should only allocate a new data_ptr inside
* the phase! */
/* init the new_phases array */
/* TODO: this is wrong, it should only allocate a new data_ptr inside
* the phase! */
irg_walk_anchors(irg, copy_node_dce, rewire_inputs, NULL);
/* fix the anchor */
irg_walk_anchors(irg, copy_node_dce, rewire_inputs, NULL);
/* fix the anchor */
assert(new_anchor != NULL);
irg->anchor = new_anchor;
/* copy the new phases into the irg */
assert(new_anchor != NULL);
irg->anchor = new_anchor;
/* copy the new phases into the irg */
*/
static void dead_node_subst_hook(void *context, ir_graph *irg, ir_node *old, ir_node *nw)
{
*/
static void dead_node_subst_hook(void *context, ir_graph *irg, ir_node *old, ir_node *nw)
{
- survive_dce_t *sd = context;
- survive_dce_list_t *list = pmap_get(sd->places, old);
+ survive_dce_t *sd = (survive_dce_t*)context;
+ survive_dce_list_t *list = (survive_dce_list_t*)pmap_get(sd->places, old);