diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semdata.nim | 2 | ||||
-rw-r--r-- | compiler/semstmts.nim | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/compiler/semdata.nim b/compiler/semdata.nim index 082a4813e..d26e57320 100644 --- a/compiler/semdata.nim +++ b/compiler/semdata.nim @@ -36,8 +36,6 @@ type selfSym*: PSym # the 'self' symbol (if available) nestedLoopCounter*: int # whether we are in a loop or not nestedBlockCounter*: int # whether we are in a block or not - inTryStmt*: int # whether we are in a try statement; works also - # in standalone ``except`` and ``finally`` next*: PProcCon # used for stacking procedure contexts mappingExists*: bool mapping*: TIdTable diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index d56c1c1bd..b4630294b 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -198,7 +198,6 @@ proc semTry(c: PContext, n: PNode; flags: TExprFlags): PNode = isImported result = n - inc c.p.inTryStmt checkMinSonsLen(n, 2, c.config) var typ = commonTypeBegin @@ -265,7 +264,6 @@ proc semTry(c: PContext, n: PNode; flags: TExprFlags): PNode = else: dec last closeScope(c) - dec c.p.inTryStmt if isEmptyType(typ) or typ.kind in {tyNil, tyUntyped}: discardCheck(c, n[0], flags) for i in 1..<n.len: discardCheck(c, n[i].lastSon, flags) |