--gc:destructors: simple closures work
This commit is contained in:
parent
7a4d066102
commit
44a27ccfe1
4 changed files with 20 additions and 13 deletions
|
|
@ -1193,8 +1193,6 @@ proc genDefault(p: BProc; n: PNode; d: var TLoc) =
|
|||
if d.k == locNone: getTemp(p, n.typ, d, needsInit=true)
|
||||
else: resetLoc(p, d)
|
||||
|
||||
proc trivialDestructor(s: PSym): bool {.inline.} = s.ast[bodyPos].len == 0
|
||||
|
||||
proc rawGenNew(p: BProc, a: TLoc, sizeExpr: Rope) =
|
||||
var sizeExpr = sizeExpr
|
||||
let typ = a.t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue