diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-03-05 22:34:31 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-03-06 09:00:06 +0100 |
commit | cfd5210405efef07a7af482113512f67f266c4d3 (patch) | |
tree | 8b4738cd877a9da686ea74e7e8d47838c70edbe5 | |
parent | 2c01f0ad8d1e321e608acc9e939afa99ed4c2250 (diff) | |
download | Nim-cfd5210405efef07a7af482113512f67f266c4d3.tar.gz |
dfa.nim: continues are bad
-rw-r--r-- | compiler/dfa.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/dfa.nim b/compiler/dfa.nim index cecb8394c..4dd2670ff 100644 --- a/compiler/dfa.nim +++ b/compiler/dfa.nim @@ -624,8 +624,9 @@ proc genMagic(c: var Con; n: PNode; m: TMagic) = proc genVarSection(c: var Con; n: PNode) = for a in n: - if a.kind == nkCommentStmt: continue - if a.kind == nkVarTuple: + if a.kind == nkCommentStmt: + discard + elif a.kind == nkVarTuple: gen(c, a.lastSon) for i in 0 .. a.len-3: genDef(c, a[i]) else: |