]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: suppress statement marks on interior of switch tree
authorDavid Chase <drchase@google.com>
Thu, 3 Oct 2019 16:19:42 +0000 (12:19 -0400)
committerDavid Chase <drchase@google.com>
Mon, 7 Oct 2019 22:17:41 +0000 (22:17 +0000)
commit01ff213a51a6713958f80619f483eb2e731e034a
treef88884199c6b459cce0fa274a4e3b2e7c6410bae
parentab00f89c2742792ae23c6861e82c4b0b6cc6376b
cmd/compile: suppress statement marks on interior of switch tree

The lines on nodes within the IF-tree generated for switch
statements looks like control flow so the lines get marked
as statement boundaries.  Except for the first/root comparison,
explicitly disable the marks.

Change-Id: I64b966ed8e427cdc6b816ff6b6a2eb754346edc7
Reviewed-on: https://go-review.googlesource.com/c/go/+/198738
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