[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

@ -295,7 +295,7 @@ proc applyRule*(c: PContext, s: PSym, n: PNode): PNode =
# constraint not fulfilled:
if not ok: return nil
markUsed(c, n.info, s, c.graph.usageSym)
markUsed(c, n.info, s)
if ctx.subMatch:
assert m.len == 3
m.sons[1] = result