]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ir: simplify formatting of CompLitExpr
authorMatthew Dempsky <mdempsky@google.com>
Wed, 6 Sep 2023 23:03:38 +0000 (16:03 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 8 Sep 2023 18:54:34 +0000 (18:54 +0000)
commit0a49d4a7786dcc77b6ff4d687b6d4b14f307b5ef
tree85b50a1eefc9ee5469939cdc1e32ebda126ddea8
parent7f1f4a193662f18393ee7a189bccba4f3d1c3a64
cmd/compile/internal/ir: simplify formatting of CompLitExpr

Composite literals always have a type now, so the extra fallback code
isn't necessary. But also, to prepare for the upcoming removal of
OrigNode, we need to print OSLICELIT with Implicit set as
"... argument" to satisfy existing regress tests.

Change-Id: I365e879066903eebf1b78e10c1b505565cea3ce3
Reviewed-on: https://go-review.googlesource.com/c/go/+/526396
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ir/fmt.go