From: Cuong Manh Le Date: Tue, 29 Dec 2020 05:31:17 +0000 (+0700) Subject: [dev.regabi] cmd/compile: remove typ from AssignOpStmt X-Git-Tag: go1.17beta1~1539^2~189 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=82ad3083f8;p=gostls13.git [dev.regabi] cmd/compile: remove typ from AssignOpStmt Previous detached logic of typechecking AssignOpStmt from tcArith, the typ field of it is not used anymore. Pass toolstash -cmp. Change-Id: I407507a1c4c4f2958fca4d6899875564e54bf1f5 Reviewed-on: https://go-review.googlesource.com/c/go/+/279443 Trust: Cuong Manh Le Run-TryBot: Cuong Manh Le TryBot-Result: Go Bot Reviewed-by: Matthew Dempsky --- diff --git a/src/cmd/compile/internal/ir/stmt.go b/src/cmd/compile/internal/ir/stmt.go index de152fec72..1301e65e26 100644 --- a/src/cmd/compile/internal/ir/stmt.go +++ b/src/cmd/compile/internal/ir/stmt.go @@ -112,7 +112,6 @@ func (n *AssignStmt) SetOp(op Op) { // An AssignOpStmt is an AsOp= assignment statement: X AsOp= Y. type AssignOpStmt struct { miniStmt - typ *types.Type X Node AsOp Op // OADD etc Y Node @@ -126,9 +125,6 @@ func NewAssignOpStmt(pos src.XPos, asOp Op, x, y Node) *AssignOpStmt { return n } -func (n *AssignOpStmt) Type() *types.Type { return n.typ } -func (n *AssignOpStmt) SetType(x *types.Type) { n.typ = x } - // A BlockStmt is a block: { List }. type BlockStmt struct { miniStmt