]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: silence valgrind error
authorDave Cheney <dave@cheney.net>
Wed, 13 Mar 2013 20:12:38 +0000 (16:12 -0400)
committerDave Cheney <dave@cheney.net>
Wed, 13 Mar 2013 20:12:38 +0000 (16:12 -0400)
commit8883c484cf42b2addb8559e2a4e24383b5c083d1
tree087c1bfb66d173c56707b27f70496310c7987d95
parent4e63d6ee4d55c706c3e24b718d89ece9c7faec16
cmd/gc: silence valgrind error

valgrind complained that under some circumstances,

    *nr = *nc

was being called when nr and nc were the same *Node. The suggestion my Rémy was to introduce a tmp node to avoid the potential for aliasing in subnode.

R=remyoudompheng, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/7780044
src/cmd/gc/cplx.c