compute sinks/assignments properly for for-loop iteration variables

This commit is contained in:
Araq
2019-04-08 13:53:15 +02:00
parent 001835bdec
commit 9565b844dd
2 changed files with 2 additions and 2 deletions

View File

@@ -564,7 +564,7 @@ proc genReturn(c: var Con; n: PNode) =
genNoReturn(c, n)
const
InterestingSyms = {skVar, skResult, skLet, skParam}
InterestingSyms = {skVar, skResult, skLet, skParam, skForVar}
proc genUse(c: var Con; n: PNode) =
var n = n

View File

@@ -139,7 +139,7 @@ import
lineinfos, parampatterns
const
InterestingSyms = {skVar, skResult, skLet}
InterestingSyms = {skVar, skResult, skLet, skForVar}
type
Con = object