]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/ir: remove HasBreak field of some nodes
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 13 Apr 2023 15:26:09 +0000 (22:26 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 14 Apr 2023 17:58:29 +0000 (17:58 +0000)
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>

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

index e6f0757ba2c1ef00f3c3c314695f8c60aa1f981e..b6653ab528df6943671d559a50f4baa1cc24e5f8 100644 (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