summary refs log tree commit diff stats
path: root/compiler/transf.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-11-09 13:21:55 +0100
committerGitHub <noreply@github.com>2019-11-09 13:21:55 +0100
commit82e0765fc903f6014baa08104bc66bff80a28132 (patch)
treeb305af44c0c0c10defab098b01cd1d4989f1c80d /compiler/transf.nim
parent144ad36974b061f8e723d78d5ab6819627b1877d (diff)
downloadNim-82e0765fc903f6014baa08104bc66bff80a28132.tar.gz
--gc:destructors improvements (#12626)
* do not cache the noDestructors transformation
* liftdestructor: improvements
* undo bugfix
Diffstat (limited to 'compiler/transf.nim')
-rw-r--r--compiler/transf.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/transf.nim b/compiler/transf.nim
index 5660bcd8c..c63a26d10 100644
--- a/compiler/transf.nim
+++ b/compiler/transf.nim
@@ -1137,8 +1137,7 @@ proc transformBody*(g: ModuleGraph, prc: PSym, cache = true;
 
     incl(result.flags, nfTransf)
 
-    let cache = cache or prc.typ.callConv == ccInline
-    if cache:
+    if cache or prc.typ.callConv == ccInline:
       # genProc for inline procs will be called multiple times from different modules,
       # it is important to transform exactly once to get sym ids and locations right
       prc.transformedBody = result