diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2018-11-06 16:27:58 -0800 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2019-02-27 18:07:42 +0000 |
| commit | 9892ccff23c94c5fabd704ff0c027d45b7b03cb8 (patch) | |
| tree | 1a630fad380e4883d847f9790cdfc685eab675fe /src/errors/errors.go | |
| parent | 694cd005c3943027a4533a0a534837108ccd66f6 (diff) | |
| download | go-9892ccff23c94c5fabd704ff0c027d45b7b03cb8.tar.xz | |
cmd/compile: add types.SoleComponent, use in convFuncName
The specialized conversion functions care only
about a type's layout in memory, so e.g.
[1]string is equivalent to string.
Add types.SoleComponent to assist with such use cases,
and use it for the specialized conversion functions.
Increases the number of convTstring calls by ~1%.
Change-Id: I09a392909f2037387b30642781e65f707a048af5
Reviewed-on: https://go-review.googlesource.com/c/148577
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/errors/errors.go')
0 files changed, 0 insertions, 0 deletions
