]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: clean up string/bytes/runes conversion code
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 23 Apr 2019 00:04:59 +0000 (17:04 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 23 Apr 2019 02:14:40 +0000 (02:14 +0000)
commit980a57a84b932b43fc2d3ab699f7c235472009ab
tree3e6847096b412a8e0a35d3c2ac6ba77ff7f359d5
parentf0e97546962736fe4aa73b7c7ed590f0134515e1
cmd/compile: clean up string/bytes/runes conversion code

Combine the OBYTES2STR and ORUNES2STR cases, as they are identical.

Clean up the construction, commenting, and spacing of the other cases,
and make them all match.

Passes toolstash-check.

Change-Id: I1be8a528927caeb15e49cb12ca0f11c0827dadd9
Reviewed-on: https://go-review.googlesource.com/c/go/+/173322
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/walk.go