]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: treat &T{} like new(T): allocate on stack if possible
authorRuss Cox <rsc@golang.org>
Sun, 3 Feb 2013 04:54:21 +0000 (23:54 -0500)
committerRuss Cox <rsc@golang.org>
Sun, 3 Feb 2013 04:54:21 +0000 (23:54 -0500)
commit2af3cbe308986005715bed3fa8ec5975e32ea7b7
tree5b5600ead4af01781eeeedc2814b40aa04ed1326
parenta72f9f46a2aacb522eb5da6bea9ea9a02a1aaea8
cmd/gc: treat &T{} like new(T): allocate on stack if possible

Fixes #4618.

R=ken2
CC=golang-dev
https://golang.org/cl/7278048
src/cmd/gc/sinit.c
test/fixedbugs/issue4618.go [new file with mode: 0644]