1
0
mirror of https://github.com/golang/go synced 2024-11-20 01:44:42 -07:00
go/src
Daniel Martí 1fbeccb15a cmd/compile: deduplicate a few lines in swt.go
Noticed while reading some code that the two branches in this loop body
shared the last statements. Rewrite it in a way that they are not
duplicated.

Passes toolstash -cmp on std.

Change-Id: I3356ca9fa37c32eee496e221d7830bfc581dade1
Reviewed-on: https://go-review.googlesource.com/66470
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2017-10-11 23:03:47 +00:00
..
archive archive/tar: ignore ChangeTime and AccessTime unless Format is specified 2017-10-10 20:13:27 +00:00
bufio
builtin
bytes bytes: panic in ReadFrom with more information with negative Read counts 2017-10-06 06:49:40 +00:00
cmd cmd/compile: deduplicate a few lines in swt.go 2017-10-11 23:03:47 +00:00
compress compress/bzip2: fix checksum mismatch on empty reads 2017-09-25 23:05:58 +00:00
container
context
crypto crypto/x509: reject intermediates with unknown critical extensions. 2017-10-10 15:49:01 +00:00
database/sql database/sql: fix unreachable code in ColumnTypes test 2017-10-04 16:30:44 +00:00
debug debug/elf: add relocation constants 2017-10-11 16:40:10 +00:00
encoding encoding/json: use Deprecated markers 2017-10-11 22:09:22 +00:00
errors
expvar
flag flag: align multi-line usage strings 2017-09-28 20:45:32 +00:00
fmt
go io: simplify pipe implementation 2017-10-11 20:00:54 +00:00
hash
html all: revert "all: prefer strings.IndexByte over strings.Index" 2017-10-05 23:19:10 +00:00
image image/gif: add BenchmarkDecode. 2017-10-07 05:23:42 +00:00
index/suffixarray
internal all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
io io: simplify pipe implementation 2017-10-11 20:00:54 +00:00
log
math math/big: provide support for conversion bases up to 62 2017-10-06 17:46:15 +00:00
mime all: revert "all: prefer strings.IndexByte over strings.Index" 2017-10-05 23:19:10 +00:00
net net: implement deadline functionality on Pipe 2017-10-11 20:00:52 +00:00
os all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
path all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
plugin
reflect reflect: fix method indexing for non-ASCII exported methods 2017-09-28 18:06:53 +00:00
regexp all: revert "all: prefer strings.IndexByte over strings.Index" 2017-10-05 23:19:10 +00:00
runtime runtime: don't try to free OS-created signal stacks 2017-10-11 22:17:30 +00:00
sort
strconv
strings strings: improve readability of IndexAny and LastIndexAny functions. 2017-09-25 18:23:11 +00:00
sync sync/atomic: add memory barriers to Load/StoreInt32 on darwin/arm 2017-10-02 09:57:23 +00:00
syscall syscall: correct TCGETS/TCSETS values on ppc64/ppc64le 2017-09-27 14:53:47 +00:00
testing testing: add PAUSE, CONT output lines to explain Parallel execution 2017-10-10 17:44:22 +00:00
text
time all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
unicode all: revert "all: prefer strings.IndexByte over strings.Index" 2017-10-05 23:19:10 +00:00
unsafe
vendor/golang_org/x
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc