]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: make type switch case positions consistent
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 14 Apr 2020 06:28:32 +0000 (23:28 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 14 Apr 2020 17:44:16 +0000 (17:44 +0000)
commitf5439d4c68e14d1f7758ec0e50cc8fe192ad2f5b
treee79cb27f2320fbe97838a54c8fdd1612ffd37ce2
parent02ab2c040e20dac433a2a7e1bfca29d3071733ae
cmd/compile: make type switch case positions consistent

CL 228106 moved the position at which we
checked whether a type switch variable had a particular type
from the type switch to the case statement, but only for
single, concrete types. This is a better position,
so this change changes the rest.

Change-Id: I601d4a5c4a0d9400e7804b9f1e729af948349a8f
Reviewed-on: https://go-review.googlesource.com/c/go/+/228220
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/gc/swt.go