Skip to content

Commit

Permalink
fix raiseExitCleanup destroy call statement
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Nov 8, 2024
1 parent 53d1c39 commit 10511f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/ccgstmts.nim
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,8 @@ proc raiseExitCleanup(p: BProc, destroy: string) =
if nimErrorFlagDisabled notin p.flags:
p.flags.incl nimErrorFlagAccessed
p.s(cpsStmts).addSingleIfStmt(cUnlikely(cDeref("nimErr_"))):
p.s(cpsStmts).add(destroy)
p.s(cpsStmts).addStmt():
p.s(cpsStmts).add(destroy)
if p.nestedTryStmts.len == 0:
p.flags.incl beforeRetNeeded
# easy case, simply goto 'ret':
Expand Down

0 comments on commit 10511f3

Please sign in to comment.