]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: cleanup walking OCONV/OCONVNOP
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 20 Aug 2018 20:31:49 +0000 (21:31 +0100)
committerRobert Griesemer <gri@golang.org>
Fri, 24 Aug 2018 17:48:50 +0000 (17:48 +0000)
commit2200b18258874ba61771ea78d5fbee99ba6fe71f
treeff71c2c04283be2e564e5e0f9a691e8f42fe1e39
parent60f83621fc357f9e838bee9811230339b9da493a
cmd/compile: cleanup walking OCONV/OCONVNOP

Use a separate func, which needs less indentation and can use returns
instead of labelled breaks. We can also give the types better names, and
we don't have to repeat the calls to conv and mkcall.

Passes toolstash -cmp on std cmd.

Change-Id: I1071c170fa729562d70093a09b7dea003c5fe26e
Reviewed-on: https://go-review.googlesource.com/130075
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/walk.go