-d:nimDebug: calls doAssert false instead of quit (#17739)

This commit is contained in:
Timothee Cour 2021-04-17 02:49:54 -07:00 • committed by GitHub
commit 5c9c1988f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 20 additions and 14 deletions

View file

@ -1011,7 +1011,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType,
when declared(deallocatedRefId):
let corrupt = deallocatedRefId(cast[pointer](f))
if corrupt != 0:
quit "it's corrupt " & $corrupt
c.c.config.quitOrRaise "it's corrupt " & $corrupt
if f.kind == tyUntyped:
if aOrig != nil: put(c, f, aOrig)