diff options
| author | Cherry Zhang <cherryyz@google.com> | 2020-09-17 21:34:52 -0400 |
|---|---|---|
| committer | Cherry Zhang <cherryyz@google.com> | 2020-09-18 14:36:22 +0000 |
| commit | 789d77a87e5417c10377a9f9de07ec37c65048f2 (patch) | |
| tree | bcb48cc3712b338a89aac72d480521e832d64094 /src/runtime/debug | |
| parent | bf9800c7931da96e2ddc8363955f43581265b95c (diff) | |
| download | go-789d77a87e5417c10377a9f9de07ec37c65048f2.tar.xz | |
cmd/link: propagate UsedInIface through method descriptor
The linker prunes methods that are not directly reachable if the
receiver type is never converted to interface. A type can be
converted to interface using reflection through other types.
The linker already takes this into consideration but it missed
the case that the intermediate is a method descriptor. Handle
this case.
Change-Id: I590efc5da163c326db8d43583908a2ef67f65d9d
Reviewed-on: https://go-review.googlesource.com/c/go/+/255858
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Diffstat (limited to 'src/runtime/debug')
0 files changed, 0 insertions, 0 deletions
