]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: allow more args in StructMake folding rule
authorKeith Randall <khr@golang.org>
Wed, 6 Aug 2025 16:21:41 +0000 (09:21 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 6 Aug 2025 18:04:07 +0000 (11:04 -0700)
commit72e8237cc11569de2faf9885a1b83d06446533b5
treebaf2d4d05b7f41a048b4ed8b4f08f0ccf3788853
parent3406a617d9643902e932ca99c6f276fa7b19e030
cmd/compile: allow more args in StructMake folding rule

imakeOfStructMake does the right thing, but we never call it
when the StructMake has more than one argument.

Fixes #74908

Change-Id: Ib4b1a025bfb1fa69a325207e47b74bd6217092bf
Reviewed-on: https://go-review.googlesource.com/c/go/+/693615
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/ssa/_gen/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go
test/fixedbugs/issue74908.go [new file with mode: 0644]