]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove "special return in disguise" case
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sun, 12 Apr 2020 16:38:36 +0000 (23:38 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Tue, 14 Apr 2020 07:12:17 +0000 (07:12 +0000)
commit34e38ac99f025549599ea7e1ad2e80026ae16174
treee919e6466c13cd312b405d03ccc897243fae0122
parentf3424ceff2fa48615ed98580f337ab044925c940
cmd/compile: remove "special return in disguise" case

ascompatee does not generate 'x = x' during return, so we don't have to
check for samelist and disguising special return anymore.

While at it, also remove samelist, as this is the only place it's used.

Passes toolstash-check.

Change-Id: I41c7b077d562aadb5916a61e2ab6229bae3cdef4
Reviewed-on: https://go-review.googlesource.com/c/go/+/227807
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/walk.go