1
0
mirror of https://github.com/golang/go synced 2024-11-23 17:50:06 -07:00

cmd/gc: don't mark select descriptor as EscNone

selv is created with temp() which calls tempname, which marks
the new n with EscNever, so there is no need to explicitly set
EscNone on the select descriptor.

Fixes #8396.

LGTM=dvyukov
R=golang-codereviews, dave, dvyukov
CC=golang-codereviews
https://golang.org/cl/112520043
This commit is contained in:
Bobby Powers 2014-07-25 11:22:58 +04:00 committed by Dmitriy Vyukov
parent 5e805aff4a
commit 0f2cde8bdc

View File

@ -260,7 +260,6 @@ walkselect(Node *sel)
// generate sel-struct
setlineno(sel);
selv = temp(selecttype(sel->xoffset));
selv->esc = EscNone;
r = nod(OAS, selv, N);
typecheck(&r, Etop);
init = list(init, r);