tiny refactoring related to sink parameter inference logic (#21064)

* tiny refactoring related to sink parameter inference logic

* Update compiler/sempass2.nim
This commit is contained in:
Andreas Rumpf 2022-12-10 15:42:22 +01:00 • committed by GitHub
commit 2ebd71bfd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -19,7 +19,6 @@ proc checkForSink*(config: ConfigRef; idgen: IdGenerator; owner: PSym; arg: PNod
var local = p # sink parameter?
passToSink(local)
]#
if optSinkInference notin config.options: return
case arg.kind
of nkSym:
if arg.sym.kind == skParam and