summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-05-06 13:27:40 +0200
committerGitHub <noreply@github.com>2021-05-06 13:27:40 +0200
commit98cd1671a3420875b90aebf0e92a0ab762facb51 (patch)
tree68771c008f25bafa0357f460c2050d887da5e101 /compiler/semstmts.nim
parent436af88d8c436265c751bbbc0d76ef42aab0cdf0 (diff)
downloadNim-98cd1671a3420875b90aebf0e92a0ab762facb51.tar.gz
minor cleanups (#17948)
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim2
1 files changed, 0 insertions, 2 deletions
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)