diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2015-01-19 23:46:22 +0300 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2015-01-28 16:59:01 +0000 |
| commit | 1b87f01239de499654b390a41a7f8e2b453789dc (patch) | |
| tree | e346c4ea2d5fe828abcbf55121ec149f3b99b623 /src/runtime/string_test.go | |
| parent | 2059ffbc8db0dff3fd9780a817f76e95559193ba (diff) | |
| download | go-1b87f01239de499654b390a41a7f8e2b453789dc.tar.xz | |
cmd/gc: improve escape analysis for &T{...}
Currently all PTRLIT element initializers escape. There is no reason for that.
This change links STRUCTLIT to PTRLIT; STRUCTLIT element initializers are
already linked to the STRUCTLIT. As the result, PTRLIT element initializers
escape when PTRLIT itself escapes.
Change-Id: I89ecd8677cbf81addcfd469cd2fd461c0e9bf7dd
Reviewed-on: https://go-review.googlesource.com/3031
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/string_test.go')
0 files changed, 0 insertions, 0 deletions
