aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/iface.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2016-04-12 16:25:48 -0700
committerKeith Randall <khr@golang.org>2016-04-13 00:24:38 +0000
commit260b7daf0a3fa1548d976f2484325240d4bdb73a (patch)
tree32c88754e544bd6ac0261f40be0b9f332e7dafb1 /src/runtime/iface.go
parentb0cbe158da10aac1876680e825a902d58a9d1bac (diff)
downloadgo-260b7daf0a3fa1548d976f2484325240d4bdb73a.tar.gz
go-260b7daf0a3fa1548d976f2484325240d4bdb73a.zip
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 <walken@google.com>
Diffstat (limited to 'src/runtime/iface.go')
-rw-r--r--src/runtime/iface.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/iface.go b/src/runtime/iface.go
index 3ce1e237d3..a4c962fb7a 100644
--- a/src/runtime/iface.go
+++ b/src/runtime/iface.go
@@ -173,7 +173,7 @@ func convT2E(t *_type, elem unsafe.Pointer, x unsafe.Pointer) (e eface) {
func convT2I(tab *itab, elem unsafe.Pointer, x unsafe.Pointer) (i iface) {
t := tab._type
if raceenabled {
- raceReadObjectPC(t, elem, getcallerpc(unsafe.Pointer(&t)), funcPC(convT2I))
+ raceReadObjectPC(t, elem, getcallerpc(unsafe.Pointer(&tab)), funcPC(convT2I))
}
if msanenabled {
msanread(elem, t.size)