aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssagen
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2021-04-20 17:29:57 -0400
committerCherry Zhang <cherryyz@google.com>2021-04-20 21:59:20 +0000
commitf448cb8ba83be1055cc73101e0c217c2a503c8ad (patch)
treea5f123bd46a30a6256697148153c03ff540fc604 /src/cmd/compile/internal/ssagen
parent57b0d838ed2e0c128dfc480fee3b5c43309d3369 (diff)
downloadgo-f448cb8ba83be1055cc73101e0c217c2a503c8ad.tar.gz
go-f448cb8ba83be1055cc73101e0c217c2a503c8ad.zip
cmd/compile: use f.Nname.Type() in makeABIWrapper
Apparently, f.Nname.Ntype.Type() doesn't work with types2, as it doesn't set Ntype, unlike the old type checker. f.Nname.Type() works for both. Change-Id: I6fa8a81c9fc7b65e008d9f158b88f0d56d84c3ff Reviewed-on: https://go-review.googlesource.com/c/go/+/312089 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssagen')
-rw-r--r--src/cmd/compile/internal/ssagen/abi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssagen/abi.go b/src/cmd/compile/internal/ssagen/abi.go
index 7d56362302..e460adaf95 100644
--- a/src/cmd/compile/internal/ssagen/abi.go
+++ b/src/cmd/compile/internal/ssagen/abi.go
@@ -311,7 +311,7 @@ func makeABIWrapper(f *ir.Func, wrapperABI obj.ABI) {
// At the moment we don't support wrapping a method, we'd need machinery
// below to handle the receiver. Panic if we see this scenario.
- ft := f.Nname.Ntype.Type()
+ ft := f.Nname.Type()
if ft.NumRecvs() != 0 {
panic("makeABIWrapper support for wrapping methods not implemented")
}