Commit 28b4c7f6 authored by Matthias Braun's avatar Matthias Braun
Browse files

Fix bug in last commit

parent 60e2ad26
......@@ -1427,9 +1427,9 @@ static ir_node *equivalent_node_Pin(ir_node *n)
{
ir_node *const op = get_Pin_op(n);
/* Pin(Pin(x)) -> Pin(x) */
if (get_nodes_block(op) == get_nodes_block(n))
if (is_Pin(op) && get_nodes_block(op) == get_nodes_block(n))
return op;
return op;
return n;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment