Skip to content
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.

R=golang-codereviews, dave, dvyukov
  • Loading branch information
bpowers authored and dvyukov committed Jul 25, 2014
1 parent 5e805af commit 0f2cde8bdc9a6f31bc6a8ebbd0b078d9c49acb23
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/cmd/gc/select.c
@@ -260,7 +260,6 @@ walkselect(Node *sel)
// generate sel-struct
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.
You can’t perform that action at this time.