From 48968f3c842a7166b743e9554328ba17ab7608d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20D=C3=B6ring?= Date: Thu, 8 Aug 2019 09:16:07 +0200 Subject: [PATCH] delete expensive call (#11909) [refactoring] --- compiler/sigmatch.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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