gc:destructors progress
This commit is contained in:
parent
ab48d7901e
commit
ad82e65387
7 changed files with 31 additions and 79 deletions
|
|
@ -2028,7 +2028,7 @@ proc genMove(p: BProc; n: PNode; d: var TLoc) =
|
|||
resetLoc(p, a)
|
||||
|
||||
proc genDestroy(p: BProc; n: PNode) =
|
||||
if optNimV2 in p.config.globalOptions:
|
||||
if p.config.selectedGC == gcDestructors:
|
||||
let arg = n[1].skipAddr
|
||||
let t = arg.typ.skipTypes(abstractInst)
|
||||
case t.kind
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue