minor correction
This commit is contained in:
parent
8b7f416c37
commit
d22fa09000
1 changed files with 1 additions and 2 deletions
|
|
@ -367,8 +367,7 @@ proc destructiveMoveVar(n: PNode; c: var Con): PNode =
|
||||||
|
|
||||||
proc sinkParamIsLastReadCheck(c: var Con, s: PNode) =
|
proc sinkParamIsLastReadCheck(c: var Con, s: PNode) =
|
||||||
assert s.kind == nkSym and s.sym.kind == skParam
|
assert s.kind == nkSym and s.sym.kind == skParam
|
||||||
discard isLastRead(s, c)
|
if not isLastRead(s, c):
|
||||||
if c.otherRead != nil:
|
|
||||||
localError(c.graph.config, c.otherRead.info, "sink parameter `" & $s.sym.name.s &
|
localError(c.graph.config, c.otherRead.info, "sink parameter `" & $s.sym.name.s &
|
||||||
"` is already consumed at " & toFileLineCol(c. graph.config, s.info))
|
"` is already consumed at " & toFileLineCol(c. graph.config, s.info))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue