small bugfix for lambda lifting
This commit is contained in:
parent
5ac5bedc66
commit
7d05356df6
1 changed files with 1 additions and 1 deletions
|
|
@ -391,7 +391,7 @@ proc searchForInnerProcs(o: POuterContext, n: PNode) =
|
||||||
gatherVars(o, inner, body)
|
gatherVars(o, inner, body)
|
||||||
# dummy closure param needed?
|
# dummy closure param needed?
|
||||||
if inner.closureParam == nil and n.sym.typ.callConv == ccClosure:
|
if inner.closureParam == nil and n.sym.typ.callConv == ccClosure:
|
||||||
assert tfCapturesEnv notin n.sym.typ.flags
|
#assert tfCapturesEnv notin n.sym.typ.flags
|
||||||
dummyClosureParam(o, inner)
|
dummyClosureParam(o, inner)
|
||||||
# only transform if it really needs a closure:
|
# only transform if it really needs a closure:
|
||||||
if inner.closureParam != nil:
|
if inner.closureParam != nil:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue