Skip to content

Commit

Permalink
cmd/gc: don't mark select descriptor as EscNone
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bpowers authored and dvyukov committed Jul 25, 2014
1 parent 5e805af commit 0f2cde8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cmd/gc/select.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0f2cde8

Please sign in to comment.