make strscans module work with --newruntime

This commit is contained in:
Andreas Rumpf 2019-04-14 23:13:40 +02:00
commit 0e6eb7d483
2 changed files with 7 additions and 4 deletions

View file

@ -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)