aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/typecheck/iexport.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2020-12-23 06:06:31 -0800
committerMatthew Dempsky <mdempsky@google.com>2020-12-23 14:38:23 +0000
commitd1d64e4cea41bf908152e6a9c45980946e7825a2 (patch)
treef07ab854197179be69b5779b1386e31cf75597f4 /src/cmd/compile/internal/typecheck/iexport.go
parentd19018e8f1970e2232b35931546ef60cdc0734d1 (diff)
downloadgo-d1d64e4cea41bf908152e6a9c45980946e7825a2.tar.gz
go-d1d64e4cea41bf908152e6a9c45980946e7825a2.zip
[dev.regabi] cmd/compile: split SliceExpr.List into separate fields
Passes toolstash -cmp. Change-Id: I4e31154d04d99f2b80bec6a2c571a2a4a3f2ec99 Reviewed-on: https://go-review.googlesource.com/c/go/+/279959 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/typecheck/iexport.go')
-rw-r--r--src/cmd/compile/internal/typecheck/iexport.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cmd/compile/internal/typecheck/iexport.go b/src/cmd/compile/internal/typecheck/iexport.go
index 8ac791c036..365e4315bc 100644
--- a/src/cmd/compile/internal/typecheck/iexport.go
+++ b/src/cmd/compile/internal/typecheck/iexport.go
@@ -1370,17 +1370,15 @@ func (w *exportWriter) expr(n ir.Node) {
w.op(ir.OSLICE)
w.pos(n.Pos())
w.expr(n.X)
- low, high, _ := n.SliceBounds()
- w.exprsOrNil(low, high)
+ w.exprsOrNil(n.Low, n.High)
case ir.OSLICE3, ir.OSLICE3ARR:
n := n.(*ir.SliceExpr)
w.op(ir.OSLICE3)
w.pos(n.Pos())
w.expr(n.X)
- low, high, max := n.SliceBounds()
- w.exprsOrNil(low, high)
- w.expr(max)
+ w.exprsOrNil(n.Low, n.High)
+ w.expr(n.Max)
case ir.OCOPY, ir.OCOMPLEX:
// treated like other builtin calls (see e.g., OREAL)