Refactor injectdestructors (#12295)
One improvement over #devel is visible in the transformation of getEnv. With this approach we move to result whenever possible.
This commit is contained in:
parent
64d5e25821
commit
5f5879dc4c
7 changed files with 257 additions and 577 deletions
|
|
@ -663,7 +663,6 @@ proc transformFor(c: PTransf, n: PNode): PTransNode =
|
|||
t = arg.typ
|
||||
# generate a temporary and produce an assignment statement:
|
||||
var temp = newTemp(c, t, formal.info)
|
||||
#temp.sym.flags.incl sfCursor
|
||||
addVar(v, temp)
|
||||
add(stmtList, newAsgnStmt(c, nkFastAsgn, temp, arg.PTransNode))
|
||||
idNodeTablePut(newC.mapping, formal, temp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue