summaryrefslogtreecommitdiff
path: root/src/cmd/gc/closure.c
diff options
context:
space:
mode:
authorLuuk van Dijk <lvd@golang.org>2012-10-22 10:01:14 +0200
committerLuuk van Dijk <lvd@golang.org>2012-10-22 10:01:14 +0200
commit727851eba522af85258bf76c9a5c0e3747ab29da (patch)
treed37cdd07725d9bc92f5ce164523440d965e9dcc2 /src/cmd/gc/closure.c
parent6ac3700390d61ba9ee678faca16930a40e0f141b (diff)
downloadgo-727851eba522af85258bf76c9a5c0e3747ab29da.tar.gz
cmd/gc: fix strict tree property for AST for OAS2RECV nodes.
in typecheck and walk, conversion from OAS2RECV to OAS2 and to OSELRECV2 duplicated the ->rlist->n to ->right thereby destroying the strict tree-ness of the AST (up to ONAMES) of course. Several recursions in esc.c and inl.c and probably elsewhere assume nodes of the tree aren't duplicated. rather than defensively code around this, i'd rather assert these cases away and fix their cause. (this was tripped in 6741044) R=rsc CC=golang-dev http://codereview.appspot.com/6750043
Diffstat (limited to 'src/cmd/gc/closure.c')
0 files changed, 0 insertions, 0 deletions