]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: fix case where we were copying a raw Node
authorDan Scales <danscales@google.com>
Sat, 22 May 2021 03:09:55 +0000 (20:09 -0700)
committerDan Scales <danscales@google.com>
Mon, 24 May 2021 16:01:17 +0000 (16:01 +0000)
commitb18b2d372e263dda8862c1eafef739403ba4521d
treec91c7f8790d3d677539333c49df0076b21491364
parent5b1120fac7e234af44c09ec0db1982aa2c7b7357
[dev.typeparams] cmd/compile:  fix case where we were copying a raw Node

Replace the raw Node copy with the creation of a new node, and the
copying of the needed flags and fields.

Change-Id: I636bf228ba28c0d5dc25f8366d82379d86ecd731
Reviewed-on: https://go-review.googlesource.com/c/go/+/322189
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Trust: Dan Scales <danscales@google.com>
src/cmd/compile/internal/inline/inl.go