commit | 61aa0953e542eb047f22905f84c7d627a35b8607 | [log] [tgz] |
---|---|---|
author | Josh Bleecher Snyder <josharian@gmail.com> | Mon Jul 20 15:39:14 2015 -0700 |
committer | Josh Bleecher Snyder <josharian@gmail.com> | Thu Jul 23 00:45:26 2015 +0000 |
tree | 9e588eb5f4ea26ca853a219d100e34001d3a257d | |
parent | 3e7e519c367f4ab5b2d9f863302cd0946fe74800 [diff] [blame] |
[dev.ssa] cmd/compile: implement control flow handling Add label and goto checks and improve test coverage. Implement OSWITCH and OSELECT. Implement OBREAK and OCONTINUE. Allow generation of code in dead blocks. Change-Id: Ibebb7c98b4b2344f46d38db7c9dce058c56beaac Reviewed-on: https://go-review.googlesource.com/12445 Reviewed-by: Keith Randall <khr@golang.org>
diff --git a/src/cmd/compile/internal/gc/gen.go b/src/cmd/compile/internal/gc/gen.go index 764895f..6390818 100644 --- a/src/cmd/compile/internal/gc/gen.go +++ b/src/cmd/compile/internal/gc/gen.go
@@ -141,6 +141,8 @@ return lab } +// There is a copy of checkgoto in the new SSA backend. +// Please keep them in sync. func checkgoto(from *Node, to *Node) { if from.Sym == to.Sym { return