]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: adjust line numbering for type switch
authorDavid Chase <drchase@google.com>
Thu, 3 Oct 2019 17:44:33 +0000 (13:44 -0400)
committerDavid Chase <drchase@google.com>
Fri, 4 Oct 2019 21:09:33 +0000 (21:09 +0000)
commitb8fe9f7970f82d43114d8aacb485b8cb4fd16c15
tree477e496d341b912075cdcc956395af507d787115
parentc450ace12c657e3953d79975c04f51605395cd50
cmd/compile: adjust line numbering for type switch

Two changes, one to cause the back end to not number ITab operations
(these tend to disappear and are also followed by something more robust)
and to explicitly unmark (as statements) all but the first bit of
the code generated to implement a type switch.

Change-Id: I9f7bf7cbf7ccc5d7eda57f7fb080e600eb312eb0
Reviewed-on: https://go-review.googlesource.com/c/go/+/198739
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/compile/internal/gc/swt.go
src/cmd/compile/internal/ssa/numberlines.go