]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix condition for fast pathed interface conversions
authorDmitry Vyukov <dvyukov@google.com>
Wed, 28 Jan 2015 14:28:50 +0000 (17:28 +0300)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 28 Jan 2015 15:33:10 +0000 (15:33 +0000)
commitfd85a6c64057402d809a15eb5ec0af8dba8b1256
treefc4841682d0fa3ed9b34aac3e49ca8a834c0fb50
parentb581ca5956e4cf60de2e32f91b51524054efb29c
cmd/gc: fix condition for fast pathed interface conversions

For some reason the current conditions require the type to be "uintptr-shaped".
This cuts off structs and arrays with a pointer.
isdirectiface and width==widthptr is sufficient condition to enable the fast paths.

Change-Id: I11842531e7941365413606cfd6c34c202aa14786
Reviewed-on: https://go-review.googlesource.com/3414
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/gc/walk.c