mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 13:07:48 +00:00
compute sinks/assignments properly for for-loop iteration variables
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -139,7 +139,7 @@ import
|
||||
lineinfos, parampatterns
|
||||
|
||||
const
|
||||
InterestingSyms = {skVar, skResult, skLet}
|
||||
InterestingSyms = {skVar, skResult, skLet, skForVar}
|
||||
|
||||
type
|
||||
Con = object
|
||||
|
||||
Reference in New Issue
Block a user