Don't attach a dag label to its own node.

This kills a = a; statements :)
This commit is contained in:
Bill Currie 2012-11-21 12:16:10 +09:00
parent 0583dc82d3
commit 2c09464e80

View file

@ -485,7 +485,7 @@ dag_create (flownode_t *flownode)
}
}
lx = operand_label (dag, operands[0]);
if (lx) {
if (lx && lx->dagnode != n) {
lx->expr = s->expr;
dagnode_attach_label (n, lx);
}