]> Cypherpunks repositories - gostls13.git/commit
cmd/gc, runtime: avoid unnecessary copy on type assertion.
authorDaniel Morsing <daniel.morsing@gmail.com>
Tue, 6 Nov 2012 19:40:40 +0000 (20:40 +0100)
committerDaniel Morsing <daniel.morsing@gmail.com>
Tue, 6 Nov 2012 19:40:40 +0000 (20:40 +0100)
commitd098bffd8488df939221bc487cf6f2f124b66e1e
tree9e5791991d1e9efa83131d7eb38f7423a4808f93
parent433b2f17eef632b55b9946e71e2754d67fda1765
cmd/gc, runtime: avoid unnecessary copy on type assertion.

When the first result of a type assertion is blank, the compiler would still copy out a potentially large non-interface type.

Fixes #1021.

R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/6812079
src/cmd/gc/builtin.c
src/cmd/gc/runtime.go
src/cmd/gc/walk.c
src/pkg/runtime/iface.c