diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-05-08 04:29:46 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-05-08 04:29:46 +0000 |
commit | d9b120ce89f7198d1a82727f54e0563321a2cba8 (patch) | |
tree | bd930ed9851577570d81bfd24c362fca225da645 /gcc/tree-ssa-loop-im.c | |
parent | 8c4a4099743ad6040f88252ac99962503ddede3d (diff) | |
download | gcc-d9b120ce89f7198d1a82727f54e0563321a2cba8.zip gcc-d9b120ce89f7198d1a82727f54e0563321a2cba8.tar.gz gcc-d9b120ce89f7198d1a82727f54e0563321a2cba8.tar.bz2 |
compiler: don't add pointer twice to value method of direct interface type
For a direct interface type T with a value method M, its pointer
type (*T)'s method table includes a stub method of M which takes
a (*T) as the receiver instead of a T. However, for the "typ"
field of the method table entry, we added another layer of
indirection, which makes it appear to take a **T, which is wrong.
This causes problems when using reflect.Type.Method to get the
method. This CL fixes the second, incorrect, indirection.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/175837
From-SVN: r270999
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
0 files changed, 0 insertions, 0 deletions