only store finally block in exception stack (#11876)

This commit is contained in:
Jacek Sieka 2019-08-28 12:08:54 +02:00 • committed by Andreas Rumpf
commit 42d2e68bca
2 changed files with 12 additions and 10 deletions

View file

@ -73,7 +73,7 @@ type
noSafePoints*: bool # the proc doesn't use safe points in exception handling
lastLineInfo*: TLineInfo # to avoid generating excessive 'nimln' statements
currLineInfo*: TLineInfo # AST codegen will make this superfluous
nestedTryStmts*: seq[tuple[n: PNode, inExcept: bool]]
nestedTryStmts*: seq[tuple[fin: PNode, inExcept: bool]]
# in how many nested try statements we are
# (the vars must be volatile then)
# bool is true when are in the except part of a try block