diff options
author | Araq <rumpf_a@web.de> | 2015-04-24 02:41:04 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-04-24 12:35:12 +0200 |
commit | 3317faf80da14463fd75e9b7543d957782f73581 (patch) | |
tree | 74a9196b0278ca7bbfc44cd2ea131a7c79291678 /compiler | |
parent | 6a016743aa88af40d8c961dcc8f257dcbaade859 (diff) | |
download | Nim-3317faf80da14463fd75e9b7543d957782f73581.tar.gz |
fixes #2524
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sempass2.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index 5a243afa0..6bc0fa32c 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -714,8 +714,8 @@ proc track(tracked: PEffects, n: PNode) = of nkVarSection, nkLetSection: for child in n: let last = lastSon(child) + if last.kind != nkEmpty: track(tracked, last) if child.kind == nkIdentDefs and last.kind != nkEmpty: - track(tracked, last) for i in 0 .. child.len-3: initVar(tracked, child.sons[i], volatileCheck=false) addAsgnFact(tracked.guards, child.sons[i], last) |