diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-04-14 23:13:40 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-04-14 23:13:49 +0200 |
commit | 0e6eb7d483fe1b975bd51a4900946130edf506e7 (patch) | |
tree | 8174cbb76b02e79d8eec197f0806fcdd27cf4bb9 /compiler/transf.nim | |
parent | 485d5448fa325b74b3636ffd53ede4066c3aad96 (diff) | |
download | Nim-0e6eb7d483fe1b975bd51a4900946130edf506e7.tar.gz |
make strscans module work with --newruntime
Diffstat (limited to 'compiler/transf.nim')
-rw-r--r-- | compiler/transf.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/transf.nim b/compiler/transf.nim index 30c77fed9..febe65d73 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -1115,7 +1115,7 @@ proc transformBody*(g: ModuleGraph, prc: PSym, cache = true; prc.transformedBody = newNode(nkEmpty) # protects from recursion var c = openTransf(g, prc.getModule, "") c.noDestructors = noDestructors - result = liftLambdas(g, prc, prc.ast[bodyPos], c.tooEarly) + result = liftLambdas(g, prc, prc.ast[bodyPos], c.tooEarly, noDestructors) result = processTransf(c, result, prc) liftDefer(c, result) result = liftLocalsIfRequested(prc, result, g.cache, g.config) |