diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-07-09 17:24:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 17:24:23 +0200 |
commit | c38a459582fb4744ce4abcba2d278b48857c0a31 (patch) | |
tree | 588d4f61ae18a8b896f37eb6f4d536e811da9f97 /compiler | |
parent | 64815f59b277ce03e7dd74d9d42a9058379852ec (diff) | |
download | Nim-c38a459582fb4744ce4abcba2d278b48857c0a31.tar.gz |
fixes #14925 (#14947)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ccgstmts.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/ccgstmts.nim b/compiler/ccgstmts.nim index 532272374..c56340e00 100644 --- a/compiler/ccgstmts.nim +++ b/compiler/ccgstmts.nim @@ -1218,6 +1218,10 @@ proc genTryGoto(p: BProc; t: PNode; d: var TLoc) = p.nestedTryStmts.add((fin, false, Natural lab)) p.flags.incl nimErrorFlagAccessed + + if not isEmptyType(t.typ) and d.k == locNone: + getTemp(p, t.typ, d) + expr(p, t[0], d) if 1 < t.len and t[1].kind == nkExceptBranch: |