]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/typecheck: remove NeedRuntimeType
authorMatthew Dempsky <mdempsky@google.com>
Fri, 18 Aug 2023 08:14:50 +0000 (01:14 -0700)
committerGopher Robot <gobot@golang.org>
Sat, 19 Aug 2023 22:40:55 +0000 (22:40 +0000)
commit7b2f81eb3b19232c1d3a60241cb92c1c50d0e4ab
tree9cae82f6c442598617f52bafed06afb9a5c40e4b
parente8cdab5c494716e547d2b84b68d46680e35a7a9f
cmd/compile/internal/typecheck: remove NeedRuntimeType

The only remaining use for typecheck.NeedRuntimeType is to make sure
that method expressions with anonymous receiver types (e.g.,
"struct{T}.M") have the promoted-method wrapper generated. But the
unified frontend takes care of arranging for this now.

Change-Id: I89340cb6a81343f35e0de1062610cbb993d3b6bf
Reviewed-on: https://go-review.googlesource.com/c/go/+/521036
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/typecheck/typecheck.go