quick bug fix (#7576)
This commit is contained in:
parent
29d2c34956
commit
19aad4f547
1 changed files with 2 additions and 0 deletions
|
|
@ -572,6 +572,8 @@ proc genBreakStmt(p: BProc, t: PNode) =
|
||||||
lineF(p, cpsStmts, "goto $1;$n", [label])
|
lineF(p, cpsStmts, "goto $1;$n", [label])
|
||||||
|
|
||||||
proc genRaiseStmt(p: BProc, t: PNode) =
|
proc genRaiseStmt(p: BProc, t: PNode) =
|
||||||
|
if p.module.compileToCpp:
|
||||||
|
discard cgsym(p.module, "popCurrentExceptionEx")
|
||||||
if p.nestedTryStmts.len > 0 and p.nestedTryStmts[^1].inExcept:
|
if p.nestedTryStmts.len > 0 and p.nestedTryStmts[^1].inExcept:
|
||||||
# if the current try stmt have a finally block,
|
# if the current try stmt have a finally block,
|
||||||
# we must execute it before reraising
|
# we must execute it before reraising
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue