Skip to content

Commit 260b7da

Browse files
committed
cmd/compile: fix arg to getcallerpc
getcallerpc's arg needs to point to the first argument slot. I believe this bug was introduced by Michel's itab changes (specifically https://go-review.googlesource.com/c/20902). Fixes #15145 Change-Id: Ifb2e17f3658e2136c7950dfc789b4d5706320683 Reviewed-on: https://go-review.googlesource.com/21931 Reviewed-by: Michel Lespinasse <[email protected]>
1 parent b0cbe15 commit 260b7da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/iface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func convT2E(t *_type, elem unsafe.Pointer, x unsafe.Pointer) (e eface) {
173173
func convT2I(tab *itab, elem unsafe.Pointer, x unsafe.Pointer) (i iface) {
174174
t := tab._type
175175
if raceenabled {
176-
raceReadObjectPC(t, elem, getcallerpc(unsafe.Pointer(&t)), funcPC(convT2I))
176+
raceReadObjectPC(t, elem, getcallerpc(unsafe.Pointer(&tab)), funcPC(convT2I))
177177
}
178178
if msanenabled {
179179
msanread(elem, t.size)

0 commit comments

Comments
 (0)