[refactoring] compiler: simplified markUsed

This commit is contained in:
Andreas Rumpf 2019-08-08 22:43:58 +02:00
commit 81ddc67785
9 changed files with 50 additions and 50 deletions

View file

@ -812,7 +812,7 @@ proc handleCaseStmtMacro(c: PContext; n: PNode): PNode =
errors, false)
if r.state == csMatch:
var match = r.calleeSym
markUsed(c, n[0].info, match, c.graph.usageSym)
markUsed(c, n[0].info, match)
onUse(n[0].info, match)
# but pass 'n' to the 'match' macro, not 'n[0]':