summary refs log tree commit diff stats
path: root/compiler/transf.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-03-05 17:29:48 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-03-05 19:58:54 +0100
commit4be36d77f6b5d9c32a5f35919dfbb825e9551b0e (patch)
tree1a3ae91b141cd23d9631de62e088239d2a993176 /compiler/transf.nim
parent20a21aa1848726a60493432b7337ecbfd491f7ac (diff)
downloadNim-4be36d77f6b5d9c32a5f35919dfbb825e9551b0e.tar.gz
introduce tfHasOwned for fast must-move checkings; removed tfAcyclic as the GC has ignored this hint for quite some time now
Diffstat (limited to 'compiler/transf.nim')
-rw-r--r--compiler/transf.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/transf.nim b/compiler/transf.nim
index ec390da9a..ed4a7018d 100644
--- a/compiler/transf.nim
+++ b/compiler/transf.nim
@@ -893,7 +893,8 @@ proc transform(c: PTransf, n: PNode): PTransNode =
                   nkBlockStmt, nkBlockExpr}:
       oldDeferAnchor = c.deferAnchor
       c.deferAnchor = n
-  if n.typ != nil and tfHasAsgn in n.typ.flags:
+  if (n.typ != nil and tfHasAsgn in n.typ.flags) or
+      optNimV2 in c.graph.config.globalOptions:
     c.needsDestroyPass = true
   case n.kind
   of nkSym: