]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: fix race build
authorRuss Cox <rsc@golang.org>
Thu, 16 Jan 2014 15:11:06 +0000 (10:11 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 16 Jan 2014 15:11:06 +0000 (10:11 -0500)
Missed this case in CL 51010045.

TBR=khr
CC=golang-codereviews
https://golang.org/cl/53200043

src/cmd/gc/sinit.c

index ece0b8fdfa5c9428b8647c71ee4d30410f801a89..f2100d53b7edd4cdcab89e13045f07f764756e65 100644 (file)
@@ -359,6 +359,7 @@ staticcopy(Node *l, Node *r, NodeList **out)
                                        // copying someone else's computation.
                                        rr = nod(OXXX, N, N);
                                        *rr = *orig;
+                                       rr->orig = rr; // completely separate copy
                                        rr->type = ll->type;
                                        rr->xoffset += e->xoffset;
                                        *out = list(*out, nod(OAS, ll, rr));