From 19aad4f54748a18d9319c0939dbc43bfb9d2d951 Mon Sep 17 00:00:00 2001 From: cooldome Date: Thu, 12 Apr 2018 07:00:54 +0100 Subject: [PATCH] quick bug fix (#7576) --- compiler/ccgstmts.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/ccgstmts.nim b/compiler/ccgstmts.nim index a7858de720..c52ea5f706 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