]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix names of inlined methods from other packages
authorDavid Lazar <lazard@golang.org>
Wed, 8 Mar 2017 22:08:31 +0000 (17:08 -0500)
committerDavid Lazar <lazard@golang.org>
Wed, 29 Mar 2017 17:27:49 +0000 (17:27 +0000)
commit83843b16100d889bc84580c9427e02c7c9cee769
treefc4a2a1eaeef7e1cb70cac8901594212c6ab1e91
parent7bf0adc6add500054ccbc37a868ab0fab120fa24
cmd/compile: fix names of inlined methods from other packages

Previously, an inlined call to wg.Done() in package main would have the
following incorrect symbol name:

    main.(*sync.WaitGroup).Done

This change modifies methodname to return the correct symbol name:

    sync.(*WaitGroup).Done

This fix was suggested by @mdempsky.

Fixes #19467.

Change-Id: I0117838679ac5353789299c618ff8c326712d94d
Reviewed-on: https://go-review.googlesource.com/37866
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/compile/internal/gc/dcl.go
test/fixedbugs/issue19467.dir/mysync.go [new file with mode: 0644]
test/fixedbugs/issue19467.dir/z.go [new file with mode: 0644]
test/fixedbugs/issue19467.go [new file with mode: 0644]