From 0f2cde8bdc9a6f31bc6a8ebbd0b078d9c49acb23 Mon Sep 17 00:00:00 2001 From: Bobby Powers Date: Fri, 25 Jul 2014 11:22:58 +0400 Subject: [PATCH] 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 --- src/cmd/gc/select.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cmd/gc/select.c b/src/cmd/gc/select.c index 86313cb2bba..7168e6b806c 100644 --- a/src/cmd/gc/select.c +++ b/src/cmd/gc/select.c @@ -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);