From ef190f349d981f3cca38e6377953ccc24857215d Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Fri, 9 Dec 2022 08:50:35 +0800 Subject: [PATCH] remove duplicate assignment (#21050) `newNodeIT` has already assigned `n.typ` to x. --- compiler/transf.nim | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/transf.nim b/compiler/transf.nim index 4cf048ba6c..30d64282fd 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -68,7 +68,6 @@ proc newTransNode(kind: TNodeKind, n: PNode, sons: int): PNode {.inline.} = var x = newNodeIT(kind, n.info, n.typ) newSeq(x.sons, sons) - x.typ = n.typ # x.flags = n.flags result = x