improve the generated code size for --gc:regions
This commit is contained in:
parent
35d96d8749
commit
400b4e4e0e
1 changed files with 1 additions and 1 deletions
|
|
@ -321,7 +321,7 @@ proc resetLoc(p: BProc, loc: var TLoc) =
|
||||||
else:
|
else:
|
||||||
if optNilCheck in p.options:
|
if optNilCheck in p.options:
|
||||||
linefmt(p, cpsStmts, "#chckNil((void*)$1);$n", addrLoc(p.config, loc))
|
linefmt(p, cpsStmts, "#chckNil((void*)$1);$n", addrLoc(p.config, loc))
|
||||||
if loc.storage != OnStack:
|
if loc.storage != OnStack and containsGcRef:
|
||||||
linefmt(p, cpsStmts, "#genericReset((void*)$1, $2);$n",
|
linefmt(p, cpsStmts, "#genericReset((void*)$1, $2);$n",
|
||||||
addrLoc(p.config, loc), genTypeInfo(p.module, loc.t, loc.lode.info))
|
addrLoc(p.config, loc), genTypeInfo(p.module, loc.t, loc.lode.info))
|
||||||
# XXX: generated reset procs should not touch the m_type
|
# XXX: generated reset procs should not touch the m_type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue