diff options
| author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2020-10-22 00:25:17 +0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2020-10-28 17:10:08 +0000 |
| commit | 642329fdd55aabafc67b3a7c50902e29125621ab (patch) | |
| tree | 391ec188d728cbc5578b07781d4e155e82f7c34c /src/runtime/alg.go | |
| parent | e3c58bbeb8c76fa3abc0f7153edbab72208c1f88 (diff) | |
| download | go-642329fdd55aabafc67b3a7c50902e29125621ab.tar.xz | |
Revert "cmd/compile: split exported/non-exported methods for interface type"
This reverts commit 8f26b57f9afc238bdecb9b7030bc2f4364093885.
Reason for revert: break a bunch of code, include standard library.
Fixes #42123
Change-Id: Ife90ecbafd2cb395623d1db555fbfc9c1b0098e0
Reviewed-on: https://go-review.googlesource.com/c/go/+/264026
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/alg.go')
| -rw-r--r-- | src/runtime/alg.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/alg.go b/src/runtime/alg.go index 2ec3fc3658..1b3bf1180d 100644 --- a/src/runtime/alg.go +++ b/src/runtime/alg.go @@ -166,7 +166,7 @@ func typehash(t *_type, p unsafe.Pointer, h uintptr) uintptr { return strhash(p, h) case kindInterface: i := (*interfacetype)(unsafe.Pointer(t)) - if i.isEmpty() { + if len(i.mhdr) == 0 { return nilinterhash(p, h) } return interhash(p, h) |
