]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: add zero field to rtype
authorIan Lance Taylor <iant@golang.org>
Fri, 30 May 2014 14:56:05 +0000 (07:56 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 30 May 2014 14:56:05 +0000 (07:56 -0700)
The rtype struct is meant to be a copy of reflect.rtype.  The
zero field was added to reflect.rtype in 18495:6e50725ac753.

LGTM=rsc
R=khr, rsc
CC=golang-codereviews
https://golang.org/cl/93660045

src/pkg/runtime/type.go

index 374754afaf410de8a6e21059f3a58a4fc0d24c47..276dbc0c9ccecdfb541ae95dc69d42505f5fc767 100644 (file)
@@ -26,6 +26,7 @@ type rtype struct {
        string     *string
        *uncommonType
        ptrToThis *rtype
+       zero      unsafe.Pointer
 }
 
 type _method struct {