]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.22] cmd/compile: mark pointer to noalg type as noalg
authorzuojunwei.1024 <zuojunwei.1024@bytedance.com>
Tue, 27 Feb 2024 11:14:00 +0000 (19:14 +0800)
committerJoedian Reid <joedian@google.com>
Wed, 26 Jun 2024 14:01:00 +0000 (14:01 +0000)
commitceaf26ecce663e75c4f4b476dc3c64fa58a2f0dd
tree02c8ff13d7261e2da013996b2f2ad2bbb535108a
parentdfe4dbf8c055f79758ce7ae3d3ab2d0e4a0ea9ee
[release-branch.go1.22] cmd/compile: mark pointer to noalg type as noalg

When the compiler writes PtrToThis field of noalg type, it generates
its pointer type. Mark them as noalg to prevent put them in typelinks.

Fixes #65983

Change-Id: Icbc3b18bc866f9138c7648e42dd500a80326f72b
Reviewed-on: https://go-review.googlesource.com/c/go/+/567335
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Auto-Submit: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
(cherry picked from commit b8c76effd9a3a30d66e44ed7acea789e4e95b926)
Reviewed-on: https://go-review.googlesource.com/c/go/+/593876
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/types/type.go
test/fixedbugs/issue65957.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue65957.dir/main.go [new file with mode: 0644]
test/fixedbugs/issue65957.go [new file with mode: 0644]