--gc:destructors improvements (#12626)
* do not cache the noDestructors transformation * liftdestructor: improvements * undo bugfix
This commit is contained in:
parent
144ad36974
commit
82e0765fc9
2 changed files with 18 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue