aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/string_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2015-01-19 23:46:22 +0300
committerDmitry Vyukov <dvyukov@google.com>2015-01-28 16:59:01 +0000
commit1b87f01239de499654b390a41a7f8e2b453789dc (patch)
treee346c4ea2d5fe828abcbf55121ec149f3b99b623 /src/runtime/string_test.go
parent2059ffbc8db0dff3fd9780a817f76e95559193ba (diff)
downloadgo-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