first implementation of write tracking and escape analysis; still disabled
This commit is contained in:
parent
0e2a798af4
commit
e733debec7
5 changed files with 319 additions and 21 deletions
|
|
@ -115,7 +115,7 @@ proc transformSymAux(c: PTransf, n: PNode): PNode =
|
|||
# return liftIterSym(n)
|
||||
var b: PNode
|
||||
var tc = c.transCon
|
||||
if sfBorrow in n.sym.flags:
|
||||
if sfBorrow in n.sym.flags and n.sym.kind in routineKinds:
|
||||
# simply exchange the symbol:
|
||||
b = n.sym.getBody
|
||||
if b.kind != nkSym: internalError(n.info, "wrong AST for borrowed symbol")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue