diff options
author | Arne Döring <arne.doering@gmx.net> | 2019-08-08 09:16:07 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-08-08 09:16:07 +0200 |
commit | 48968f3c842a7166b743e9554328ba17ab7608d4 (patch) | |
tree | d3706d8ccf49cd8427761af18d77da37fc141850 | |
parent | addd7b5e20a00f0a07140271c96b28882a6d0ac0 (diff) | |
download | Nim-48968f3c842a7166b743e9554328ba17ab7608d4.tar.gz |
delete expensive call (#11909) [refactoring]
-rw-r--r-- | compiler/sigmatch.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 6610158ae..be4f15652 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -2325,7 +2325,7 @@ proc matchesAux(c: PContext, n, nOrig: PNode, m.call = newNodeI(n.kind, n.info) m.call.typ = base(m.callee) # may be nil var formalLen = m.callee.n.len - addSon(m.call, copyTree(n.sons[0])) + addSon(m.call, n.sons[0]) var container: PNode = nil # constructed container formal = if formalLen > 1: m.callee.n.sons[1].sym else: nil |