summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2018-04-12 07:00:54 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-04-12 08:00:54 +0200
commit19aad4f54748a18d9319c0939dbc43bfb9d2d951 (patch)
tree3bbdea90ff9610a09ee1a8dc326f29c3d0252ced
parent29d2c34956d233f22431c94e84c3473538f07b0a (diff)
downloadNim-19aad4f54748a18d9319c0939dbc43bfb9d2d951.tar.gz
quick bug fix (#7576)
-rw-r--r--compiler/ccgstmts.nim2
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