use control flow graph for sink params

This commit is contained in:
Andrii Riabushenko 2018-12-09 18:32:43 +00:00
commit dc935f2b41
3 changed files with 23 additions and 44 deletions

View file

@ -272,7 +272,7 @@ proc genReturn(c: var Con; n: PNode) =
c.code.add Instr(n: n, kind: goto, dest: high(int) - c.code.len)
const
InterestingSyms = {skVar, skResult, skLet}
InterestingSyms = {skVar, skResult, skLet, skParam}
proc genUse(c: var Con; n: PNode) =
var n = n