diff options
author | cooldome <cdome@bk.ru> | 2018-04-12 07:00:54 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-04-12 08:00:54 +0200 |
commit | 19aad4f54748a18d9319c0939dbc43bfb9d2d951 (patch) | |
tree | 3bbdea90ff9610a09ee1a8dc326f29c3d0252ced | |
parent | 29d2c34956d233f22431c94e84c3473538f07b0a (diff) | |
download | Nim-19aad4f54748a18d9319c0939dbc43bfb9d2d951.tar.gz |
quick bug fix (#7576)
-rw-r--r-- | compiler/ccgstmts.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/ccgstmts.nim b/compiler/ccgstmts.nim index a7858de72..c52ea5f70 100644 --- a/compiler/ccgstmts.nim +++ b/compiler/ccgstmts.nim @@ -572,6 +572,8 @@ proc genBreakStmt(p: BProc, t: PNode) = lineF(p, cpsStmts, "goto $1;$n", [label]) 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 the current try stmt have a finally block, # we must execute it before reraising |