]> Cypherpunks repositories - gostls13.git/commit
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)
committerGopher Robot <gobot@golang.org>
Wed, 28 Feb 2024 05:32:14 +0000 (05:32 +0000)
commitb8c76effd9a3a30d66e44ed7acea789e4e95b926
treea9288cf99dfdeb50933719bc2f367bdc4699389c
parente8b6d0c9cd86a44802322d56d13baeeb0e418d15
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 #65957

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>
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]