aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mfinal.go
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@golang.org>2016-02-17 13:03:21 -0500
committerDavid Crawshaw <crawshaw@golang.org>2016-02-26 12:02:39 +0000
commit0231f5420f22c40ce9c15ef4d3f51ce0bafa7fef (patch)
tree340d2eb40a47c3e7a1831fc117a8afc67c6f5a09 /src/runtime/mfinal.go
parentc8ae2e82c7262df1fa902b847e09f0aa776e7ccd (diff)
downloadgo-0231f5420f22c40ce9c15ef4d3f51ce0bafa7fef.tar.gz
go-0231f5420f22c40ce9c15ef4d3f51ce0bafa7fef.zip
cmd/compile: remove uncommonType.name
Reduces binary size of cmd/go by 0.5%. For #6853. Change-Id: I5a4b814049580ab5098ad252d979f80b70d8a5f9 Reviewed-on: https://go-review.googlesource.com/19694 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/mfinal.go')
-rw-r--r--src/runtime/mfinal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mfinal.go b/src/runtime/mfinal.go
index 778cbcb416..7d45862521 100644
--- a/src/runtime/mfinal.go
+++ b/src/runtime/mfinal.go
@@ -340,7 +340,7 @@ func SetFinalizer(obj interface{}, finalizer interface{}) {
// ok - same type
goto okarg
case fint.kind&kindMask == kindPtr:
- if (fint.x == nil || fint.x.name == nil || etyp.x == nil || etyp.x.name == nil) && (*ptrtype)(unsafe.Pointer(fint)).elem == ot.elem {
+ if (fint.x == nil || etyp.x == nil) && (*ptrtype)(unsafe.Pointer(fint)).elem == ot.elem {
// ok - not same type, but both pointers,
// one or the other is unnamed, and same element type, so assignable.
goto okarg