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
parent 32ac1b7c9d
commit d84894de2e

View File

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