From 3fdb78fe80cf29f54ef222f035aece6f6190cdc4 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 18 Nov 2017 21:47:14 +0100 Subject: [PATCH] fixes #5781 --- compiler/guards.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/guards.nim b/compiler/guards.nim index 3805320aec..7bb9e288c2 100644 --- a/compiler/guards.nim +++ b/compiler/guards.nim @@ -52,7 +52,7 @@ proc isLet(n: PNode): bool = proc isVar(n: PNode): bool = n.kind == nkSym and n.sym.kind in {skResult, skVar} and - {sfGlobal, sfAddrTaken} * n.sym.flags == {} + {sfAddrTaken} * n.sym.flags == {} proc isLetLocation(m: PNode, isApprox: bool): bool = # consider: 'n[].kind' --> we really need to support 1 deref op even if this