From 82e0765fc903f6014baa08104bc66bff80a28132 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 9 Nov 2019 13:21:55 +0100 Subject: --gc:destructors improvements (#12626) * do not cache the noDestructors transformation * liftdestructor: improvements * undo bugfix --- compiler/transf.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/transf.nim') 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 -- cgit 1.4.1-2-gfad0