Skip to content

Commit

Permalink
wip; popCurrentException
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Aug 18, 2023
1 parent ade75a1 commit 48ccb10
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/ccgstmts.nim
Original file line number Diff line number Diff line change
Expand Up @@ -755,10 +755,7 @@ proc genRaiseStmt(p: BProc, t: PNode) =
var e = rdLoc(a)
discard getTypeDesc(p.module, t[0].typ)
var typ = skipTypes(t[0].typ, abstractPtrs)
# XXX For reasons that currently escape me, this is only required by the new
# C++ based exception handling:
if p.config.exc == excCpp:
blockLeaveActions(p, howManyTrys = 0, howManyExcepts = p.inExceptBlockLen)
blockLeaveActions(p, howManyTrys = 0, howManyExcepts = p.inExceptBlockLen)
genLineDir(p, t)
if isImportedException(typ, p.config):
lineF(p, cpsStmts, "throw $1;$n", [e])
Expand Down

0 comments on commit 48ccb10

Please sign in to comment.