]> Cypherpunks repositories - gostls13.git/commit
[dev.regabi] cmd/compile: simplify fmt handling of Nodes
authorRuss Cox <rsc@golang.org>
Wed, 25 Nov 2020 04:58:36 +0000 (23:58 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 25 Nov 2020 15:08:53 +0000 (15:08 +0000)
commit6e583d65abd2b044997430984c43b80cad398cc1
tree9d4c7fa4e1825aaf44f7dbe8929967bbe09c3ae5
parentd166ef6876850571d08288c63315db2b47c851f5
[dev.regabi] cmd/compile: simplify fmt handling of Nodes

The existing code introduces many types in what appears to be an
attempt to avoid allocation when converting formatting argument lists.
Simplify by accepting that allocation is going to happen, especially
when Node itself turns into an interface.

Change-Id: I3c0d45ca01eace4924deb43c0ea7dc6d65943d08
Reviewed-on: https://go-review.googlesource.com/c/go/+/272929
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/fmt.go