Permalink
Browse files

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
  • Loading branch information...
1 parent 5e805af commit 0f2cde8bdc9a6f31bc6a8ebbd0b078d9c49acb23 @bpowers bpowers committed with dvyukov Jul 25, 2014
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/cmd/gc/select.c
View
@@ -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);

0 comments on commit 0f2cde8

Please sign in to comment.