fixes #13998 [backport:1.2]
This commit is contained in:
parent
8a339d1178
commit
82870e0737
1 changed files with 1 additions and 1 deletions
|
|
@ -981,7 +981,7 @@ proc genTryCpp(p: BProc, t: PNode, d: var TLoc) =
|
||||||
inc(p.labels, 2)
|
inc(p.labels, 2)
|
||||||
let etmp = p.labels
|
let etmp = p.labels
|
||||||
|
|
||||||
lineCg(p, cpsStmts, "std::exception_ptr T$1_ = nullptr;", [etmp])
|
p.procSec(cpsInit).add(ropecg(p.module, "\tstd::exception_ptr T$1_ = nullptr;", [etmp]))
|
||||||
|
|
||||||
let fin = if t[^1].kind == nkFinally: t[^1] else: nil
|
let fin = if t[^1].kind == nkFinally: t[^1] else: nil
|
||||||
p.nestedTryStmts.add((fin, false, 0.Natural))
|
p.nestedTryStmts.add((fin, false, 0.Natural))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue