]> Cypherpunks repositories - gostls13.git/commit
reflect: fix typeptrdata
authorKeith Randall <keithr@alum.mit.edu>
Tue, 26 Mar 2019 02:16:46 +0000 (19:16 -0700)
committerKeith Randall <khr@golang.org>
Tue, 26 Mar 2019 03:33:13 +0000 (03:33 +0000)
commit17f888c5a8479b0915f23c4a9a453430f276c53b
treeb9b1bb71b72251683d696bc8e09d5cf995ba6683
parentc4f87ed26ffc17e6cf326d33e49f639d9bf7cf86
reflect: fix typeptrdata

We can't use ptrdata inside of typeptrdata, because it won't be
properly initialized until typeptrdata returns.

Fixes #31039

Change-Id: Ib8c89191a7e4cce678a05d351bb6ded81ba23aae
Reviewed-on: https://go-review.googlesource.com/c/go/+/169317
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/reflect/type.go