]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: deduplicate a few lines in swt.go
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 27 Sep 2017 10:30:10 +0000 (11:30 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 11 Oct 2017 23:03:47 +0000 (23:03 +0000)
commit1fbeccb15a56957919e087639e255b4df64062f1
tree8bec2154cbb1d6e0ef62e922e86837cb475c735c
parent4f70a2a699d23bb47eae36c5170086688d2fa764
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>
src/cmd/compile/internal/gc/swt.go