]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: remove dead code from stringtoarraylit
authorIskander Sharipov <iskander.sharipov@intel.com>
Wed, 25 Jul 2018 16:06:01 +0000 (19:06 +0300)
committerIskander Sharipov <iskander.sharipov@intel.com>
Tue, 23 Oct 2018 09:30:44 +0000 (09:30 +0000)
commit5ddb20912043ff7ad722a27cc93a7e68d1c5ec78
tree0bf4832997fc78ff46e0e603b9933ca45822914b
parent05166bf54d053fcc833cf862b7cfb1fbf05b42ba
cmd/compile/internal/gc: remove dead code from stringtoarraylit

The code path for []byte is unused.
Rename function to stringtoruneslit to reflect change in the behavior.

Note that removed code had a bug in it,
it used [0] index instead of [i] inside a loop body.

Change-Id: I58ece5d9d3835887b014446f8a7d3e7fc2fdcaa3
Reviewed-on: https://go-review.googlesource.com/c/125796
Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/typecheck.go