Commit 0f2cde8b authored by Bobby Powers's avatar Bobby Powers Committed by Dmitriy Vyukov

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
parent 5e805aff
...@@ -260,7 +260,6 @@ walkselect(Node *sel) ...@@ -260,7 +260,6 @@ walkselect(Node *sel)
// generate sel-struct // generate sel-struct
setlineno(sel); setlineno(sel);
selv = temp(selecttype(sel->xoffset)); selv = temp(selecttype(sel->xoffset));
selv->esc = EscNone;
r = nod(OAS, selv, N); r = nod(OAS, selv, N);
typecheck(&r, Etop); typecheck(&r, Etop);
init = list(init, r); init = list(init, r);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment