aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/iface.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2016-10-25 23:34:35 +0000
committerKeith Randall <khr@golang.org>2016-10-25 23:51:34 +0000
commitc78d072c8e4a8b0283da21423732f93c503711a4 (patch)
tree7003ae9519cb53d013a3eb9a6111ad1f1892e11d /src/runtime/iface.go
parentc60d9a33bfd4af38399b4caf76be0ced4c64c839 (diff)
downloadgo-c78d072c8e4a8b0283da21423732f93c503711a4.tar.gz
go-c78d072c8e4a8b0283da21423732f93c503711a4.zip
Revert "Revert "cmd/compile: inline convI2E""
This reverts commit 7dd9c385f6896c7dcb5d76353e52e36c81af2838. Reason for revert: Reverting the revert, which will re-enable the convI2E optimization. We originally reverted the convI2E optimization because it was making the builder fail, but the underlying cause was later determined to be unrelated. Original CL: https://go-review.googlesource.com/31260 Revert CL: https://go-review.googlesource.com/31310 Real bug: https://go-review.googlesource.com/c/25159 Real fix: https://go-review.googlesource.com/c/31316 Change-Id: I17237bb577a23a7675a5caab970ccda71a4124f2 Reviewed-on: https://go-review.googlesource.com/32023 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/runtime/iface.go')
-rw-r--r--src/runtime/iface.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/runtime/iface.go b/src/runtime/iface.go
index 476ec7e8b2..b55a9ed893 100644
--- a/src/runtime/iface.go
+++ b/src/runtime/iface.go
@@ -264,16 +264,6 @@ func assertE2T2(t *_type, e eface, r unsafe.Pointer) bool {
return true
}
-func convI2E(i iface) (r eface) {
- tab := i.tab
- if tab == nil {
- return
- }
- r._type = tab._type
- r.data = i.data
- return
-}
-
func assertI2E(inter *interfacetype, i iface, r *eface) {
tab := i.tab
if tab == nil {