remove the nilChecks switch; refs #11570

This commit is contained in:
Araq 2020-04-20 11:12:09 +02:00 • committed by Andreas Rumpf
commit 59f1462b95
5 changed files with 5 additions and 9 deletions

View file

@ -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)])