delete expensive call (#11909) [refactoring]

(cherry picked from commit 48968f3c84)
This commit is contained in:
Arne Döring
2019-08-08 09:16:07 +02:00
committed by narimiran
parent ad8ea06931
commit 1d13a764e9

View File

@@ -2324,7 +2324,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