remove the nilChecks switch; refs #11570
This commit is contained in:
parent
4d1149cffd
commit
59f1462b95
5 changed files with 5 additions and 9 deletions
|
|
@ -406,8 +406,6 @@ proc resetLoc(p: BProc, loc: var TLoc) =
|
|||
else:
|
||||
linefmt(p, cpsStmts, "$1 = 0;$n", [rdLoc(loc)])
|
||||
else:
|
||||
if optNilCheck in p.options:
|
||||
linefmt(p, cpsStmts, "#chckNil((void*)$1);$n", [addrLoc(p.config, loc)])
|
||||
if loc.storage != OnStack and containsGcRef:
|
||||
linefmt(p, cpsStmts, "#genericReset((void*)$1, $2);$n",
|
||||
[addrLoc(p.config, loc), genTypeInfo(p.module, loc.t, loc.lode.info)])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue