Treat func statements similarly to flow statements

func statements need their operands marked live like flow statements do
because usage is more indirect.
This commit is contained in:
Bill Currie 2019-06-16 19:19:03 +09:00
parent db4a7a139e
commit 6e21c3ae2e

View file

@ -724,7 +724,7 @@ dag_create (flownode_t *flownode)
int i;
dag_make_children (dag, s, operands, children);
if (s->type == st_flow)
if (s->type == st_flow || s->type == st_func)
for (i = 0; i < 3; i++)
if (children[i])
dag_make_var_live (live_vars, operands[i]);