summary refs log tree commit diff stats
path: root/compiler/vmgen.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-11-14 23:19:18 +0100
committerGitHub <noreply@github.com>2019-11-14 23:19:18 +0100
commita14abc57088ec775284e1bab5815e0229ab582a3 (patch)
tree0454551a60cfb492ea9e417b44c585c85bf82ad5 /compiler/vmgen.nim
parentf22d3c75aa68833ae1b01d747d0c71074ccef310 (diff)
downloadNim-a14abc57088ec775284e1bab5815e0229ab582a3.tar.gz
ARC: solves phase ordering problems (#12654)
Diffstat (limited to 'compiler/vmgen.nim')
-rw-r--r--compiler/vmgen.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index 0dc55862c..88ac57962 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -2243,8 +2243,7 @@ proc genProc(c: PCtx; s: PSym): int =
     s.ast.sons[miscPos] = x
     # thanks to the jmp we can add top level statements easily and also nest
     # procs easily:
-    let body = transformBody(c.graph, s, cache = not isCompileTimeProc(s),
-                             noDestructors = true)
+    let body = transformBody(c.graph, s, cache = not isCompileTimeProc(s))
     let procStart = c.xjmp(body, opcJmp, 0)
     var p = PProc(blocks: @[], sym: s)
     let oldPrc = c.prc