Fix a static out of bounds error.

I really must compile with optimizations more often :P
This commit is contained in:
Bill Currie 2012-12-26 11:51:40 +09:00
parent 88c765e210
commit 412fb4aacd

View file

@ -920,7 +920,7 @@ dag_remove_dead_nodes (dag_t *dag)
if (!set_is_empty (node->identifiers)) if (!set_is_empty (node->identifiers))
continue; continue;
// MOVEP with a variable destination pointer is never dead // MOVEP with a variable destination pointer is never dead
if (node->type == st_move && node->children[3]) if (node->type == st_move && node->children[2])
continue; continue;
set_remove (dag->roots, node->number); set_remove (dag->roots, node->number);
for (child_i = set_first (node->edges); child_i; for (child_i = set_first (node->edges); child_i;