fixes #15026 [backport] (#15040)

no test case since only a special case was affected and the special case got removed
This commit is contained in:
Andreas Rumpf 2020-07-22 13:02:03 +02:00 • committed by GitHub
commit d84894de2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1292,7 +1292,7 @@ proc genTryGoto(p: BProc; t: PNode; d: var TLoc) =
# handler present or only handlers that did not match. # handler present or only handlers that did not match.
linefmt(p, cpsStmts, "*nimErr_ = oldNimErrFin$1_;$n", [lab]) linefmt(p, cpsStmts, "*nimErr_ = oldNimErrFin$1_;$n", [lab])
endBlock(p) endBlock(p)
if p.prc != nil: raiseExit(p) raiseExit(p)
if hasExcept: inc p.withinTryWithExcept if hasExcept: inc p.withinTryWithExcept
proc genTrySetjmp(p: BProc, t: PNode, d: var TLoc) = proc genTrySetjmp(p: BProc, t: PNode, d: var TLoc) =