remove duplicate assignment (#21050)

`newNodeIT` has already assigned `n.typ` to x.
This commit is contained in:
ringabout
2022-12-09 08:50:35 +08:00
committed by GitHub
parent f8e64d879c
commit ef190f349d

View File

@@ -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