diff options
Diffstat (limited to 'compiler/cgen.nim')
-rwxr-xr-x | compiler/cgen.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 9784b21bb..e9d7673bb 100755 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -578,6 +578,7 @@ proc closureSetup(p: BProc, prc: PSym) = if prc.typ.callConv != ccClosure: return # prc.ast[paramsPos].last contains the type we're after: var env = lastSon(prc.ast[paramsPos]).sym + #echo "created environment: ", env.id, " for ", prc.name.s assignLocalVar(p, env) # generate cast assignment: appcg(p, cpsStmts, "$1 = ($2) ClEnv;$n", rdLoc(env.loc), |