1
0
mirror of https://github.com/golang/go synced 2024-11-11 19:51:37 -07:00

cmd/compile/internal/ir: remove HasBreak field of some nodes

CL 484435 removed all usages of them.

Change-Id: I00f21640c7573921472ff3f88cfa92837dc3f9ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/484436
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
This commit is contained in:
Cuong Manh Le 2023-04-13 22:26:09 +07:00
parent 9fab498ab1
commit 4c20c0a826

View File

@ -220,7 +220,6 @@ type ForStmt struct {
Cond Node
Post Node
Body Nodes
HasBreak bool
DistinctVars bool
}
@ -350,7 +349,6 @@ type RangeStmt struct {
Key Node
Value Node
Body Nodes
HasBreak bool
DistinctVars bool
Prealloc *Name
@ -391,9 +389,8 @@ func NewReturnStmt(pos src.XPos, results []Node) *ReturnStmt {
// A SelectStmt is a block: { Cases }.
type SelectStmt struct {
miniStmt
Label *types.Sym
Cases []*CommClause
HasBreak bool
Label *types.Sym
Cases []*CommClause
// TODO(rsc): Instead of recording here, replace with a block?
Compiled Nodes // compiled form, after walkSelect
@ -423,10 +420,9 @@ func NewSendStmt(pos src.XPos, ch, value Node) *SendStmt {
// A SwitchStmt is a switch statement: switch Init; Tag { Cases }.
type SwitchStmt struct {
miniStmt
Tag Node
Cases []*CaseClause
Label *types.Sym
HasBreak bool
Tag Node
Cases []*CaseClause
Label *types.Sym
// TODO(rsc): Instead of recording here, replace with a block?
Compiled Nodes // compiled form, after walkSwitch