mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
cmd/gc: fix race build
Missed this case in CL 51010045. TBR=khr CC=golang-codereviews https://golang.org/cl/53200043
This commit is contained in:
parent
c0b9e6218c
commit
fbfb9430dc
|
@ -359,6 +359,7 @@ staticcopy(Node *l, Node *r, NodeList **out)
|
||||||
// copying someone else's computation.
|
// copying someone else's computation.
|
||||||
rr = nod(OXXX, N, N);
|
rr = nod(OXXX, N, N);
|
||||||
*rr = *orig;
|
*rr = *orig;
|
||||||
|
rr->orig = rr; // completely separate copy
|
||||||
rr->type = ll->type;
|
rr->type = ll->type;
|
||||||
rr->xoffset += e->xoffset;
|
rr->xoffset += e->xoffset;
|
||||||
*out = list(*out, nod(OAS, ll, rr));
|
*out = list(*out, nod(OAS, ll, rr));
|
||||||
|
|
Loading…
Reference in a new issue