compute sinks/assignments properly for for-loop iteration variables
This commit is contained in:
parent
001835bdec
commit
9565b844dd
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue