diff options
author | Araq <rumpf_a@web.de> | 2013-03-16 20:40:11 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-03-16 20:40:11 +0100 |
commit | 7d05356df64c99a72f6caeeec5e98ca7482b2e14 (patch) | |
tree | ef67aba5a013f27134426ea333453805244a7dc9 | |
parent | 5ac5bedc66c94a781c4a23fa6d0407c012276aa7 (diff) | |
download | Nim-7d05356df64c99a72f6caeeec5e98ca7482b2e14.tar.gz |
small bugfix for lambda lifting
-rw-r--r-- | compiler/lambdalifting.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/lambdalifting.nim b/compiler/lambdalifting.nim index d85e4afc8..de8001ecc 100644 --- a/compiler/lambdalifting.nim +++ b/compiler/lambdalifting.nim @@ -391,7 +391,7 @@ proc searchForInnerProcs(o: POuterContext, n: PNode) = gatherVars(o, inner, body) # dummy closure param needed? 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) # only transform if it really needs a closure: if inner.closureParam != nil: |