mirror of
https://github.com/golang/go
synced 2024-11-13 14:20:23 -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:
parent
9fab498ab1
commit
4c20c0a826
@ -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
|
||||
|
||||
@ -393,7 +391,6 @@ type SelectStmt struct {
|
||||
miniStmt
|
||||
Label *types.Sym
|
||||
Cases []*CommClause
|
||||
HasBreak bool
|
||||
|
||||
// TODO(rsc): Instead of recording here, replace with a block?
|
||||
Compiled Nodes // compiled form, after walkSelect
|
||||
@ -426,7 +423,6 @@ type SwitchStmt struct {
|
||||
Tag Node
|
||||
Cases []*CaseClause
|
||||
Label *types.Sym
|
||||
HasBreak bool
|
||||
|
||||
// TODO(rsc): Instead of recording here, replace with a block?
|
||||
Compiled Nodes // compiled form, after walkSwitch
|
||||
|
Loading…
Reference in New Issue
Block a user