]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: don't walk static nodes generated by anylit.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 15 Sep 2014 16:31:47 +0000 (18:31 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 15 Sep 2014 16:31:47 +0000 (18:31 +0200)
commite024ed5ca4186b915e9a227f022f9c7bcfded5ae
treef004ffec5aa442711a9226f3081c223f42b7c0ec
parent8d47b0825549b9ec55882e0d2c135048d88734b5
cmd/gc: don't walk static nodes generated by anylit.

During anylit run, nodes such as SLICEARR(statictmp, [:])
may be generated and are expected to be found unchanged by
gen_as_init.

In some walks (in particular walkselect), the statement
may be walked again and lowered to its usual form, leading to a
crash.

Fixes #8017.
Fixes #8024.
Fixes #8058.

LGTM=rsc
R=golang-codereviews, dvyukov, gobot, rsc
CC=golang-codereviews
https://golang.org/cl/112080043
src/cmd/gc/walk.c
test/fixedbugs/issue8017.go [new file with mode: 0644]