Open
Description
I am unsure whether this is a bug or not, but the current docs of OCONVNOP
is as follows:
go/src/cmd/compile/internal/ir/node.go
Line 172 in 6e0a81a
Note the "no effect", but actually it can change the type:
type Impl struct{}
type implWrapper Impl
func _() {
i := &Impl{}
_ = (*implWrapper)(i) // OCONVNOP
}
Is this the expected behavior? If so i think that the docs should be updated, as it might be confusing (as it is a NOP).
CC @golang/compiler