From 75011b499c0c83da0fad8a3c544d6e0a49a9d0c2 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Tue, 22 Oct 2019 20:25:06 +0200 Subject: [PATCH] Remove unneccessary copyTree --- compiler/transf.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/transf.nim b/compiler/transf.nim index 17b3cf1f27d04..83cdd629e670e 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -1095,7 +1095,7 @@ proc transform(c: PTransf, n: PNode): PTransNode = providedFields.add n[i][0].sym res.add initDefaultFields(obj, (if obj.typ.kind == tyRef: obj.typ[0].n else: obj.typ.n), providedFields) n.sons.setLen(1) - res.add copyTree(obj) + res.add obj result = PTransNode(res) else: result = transformSons(c, n)