]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: clear n->list of OFOR range loop after walk.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 20 May 2013 21:45:22 +0000 (23:45 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 20 May 2013 21:45:22 +0000 (23:45 +0200)
commitfc3bec386e85b18152b9893ab6379a33a1706380
tree5806340ec7a305c5b25fcab8c26f86ba68c22eaa
parent4b0eb19a05133d4cc117fefe1e37ea1e35a64c73
cmd/gc: clear n->list of OFOR range loop after walk.

It contains the LHS of the range clause and gets
instrumented by racewalk, but it doesn't have any meaning.

Fixes #5446.

R=golang-dev, dvyukov, daniel.morsing, r
CC=golang-dev
https://golang.org/cl/9560044
src/cmd/gc/range.c
src/pkg/runtime/race/testdata/mop_test.go