Skip to content

Commit 4c20c0a

Browse files
committed
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 <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]> Run-TryBot: Cuong Manh Le <[email protected]>
1 parent 9fab498 commit 4c20c0a

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/cmd/compile/internal/ir/stmt.go

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ type ForStmt struct {
220220
Cond Node
221221
Post Node
222222
Body Nodes
223-
HasBreak bool
224223
DistinctVars bool
225224
}
226225

@@ -350,7 +349,6 @@ type RangeStmt struct {
350349
Key Node
351350
Value Node
352351
Body Nodes
353-
HasBreak bool
354352
DistinctVars bool
355353
Prealloc *Name
356354

@@ -391,9 +389,8 @@ func NewReturnStmt(pos src.XPos, results []Node) *ReturnStmt {
391389
// A SelectStmt is a block: { Cases }.
392390
type SelectStmt struct {
393391
miniStmt
394-
Label *types.Sym
395-
Cases []*CommClause
396-
HasBreak bool
392+
Label *types.Sym
393+
Cases []*CommClause
397394

398395
// TODO(rsc): Instead of recording here, replace with a block?
399396
Compiled Nodes // compiled form, after walkSelect
@@ -423,10 +420,9 @@ func NewSendStmt(pos src.XPos, ch, value Node) *SendStmt {
423420
// A SwitchStmt is a switch statement: switch Init; Tag { Cases }.
424421
type SwitchStmt struct {
425422
miniStmt
426-
Tag Node
427-
Cases []*CaseClause
428-
Label *types.Sym
429-
HasBreak bool
423+
Tag Node
424+
Cases []*CaseClause
425+
Label *types.Sym
430426

431427
// TODO(rsc): Instead of recording here, replace with a block?
432428
Compiled Nodes // compiled form, after walkSwitch

0 commit comments

Comments
 (0)