]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.26] cmd/compile: pointer-shaped types are SSAable even if lots...
authorKeith Randall <khr@golang.org>
Wed, 11 Feb 2026 01:44:08 +0000 (17:44 -0800)
committerDavid Chase <drchase@google.com>
Thu, 26 Feb 2026 18:36:00 +0000 (10:36 -0800)
commit155c25e249cab56f740aa93c81ebcb761dd32290
tree39bbded339c6d818980e82377317133a4e6b422e
parentc5723195a670a09e64769554163ae12b25839819
[release-branch.go1.26] cmd/compile: pointer-shaped types are SSAable even if lots of 0-sized fields

Normally we don't SSA-ify variables with types that have more than
4 fields. But we really do want to SSA-ify them if they are pointer
shaped.

An odd case, but the compiler shouldn't barf on them.

Failure probably started with CL 714421.

Fixes #77536

Change-Id: I51ef87676cc31df1e51e164bbd58d58c0ab72436
Reviewed-on: https://go-review.googlesource.com/c/go/+/744280
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
(cherry picked from commit 6435bf46c17dccb2eb5f7bab7dd8aa4972252b21)
Reviewed-on: https://go-review.googlesource.com/c/go/+/749421
Reviewed-by: Mark Freeman <markfreeman@google.com>
src/cmd/compile/internal/ssa/decompose.go
src/cmd/compile/internal/ssa/expand_calls.go
src/cmd/compile/internal/ssa/value.go
test/fixedbugs/issue77534.go [new file with mode: 0644]