commit | c684d4d26c3197039ac2c2f53a862f25dc7d1112 | [log] [tgz] |
---|---|---|
author | Alexandru Moșoi <mosoi@google.com> | Tue Sep 08 18:18:59 2015 +0200 |
committer | Keith Randall <khr@golang.org> | Tue Sep 08 19:13:22 2015 +0000 |
tree | 35f9a942978feed8a8744c4df3c6e25a72e70a29 | |
parent | ca9e450bed8e0884e88731526adfb2b4080b548e [diff] [blame] |
[dev.ssa] cmd/compile/internal/ssa: fix string slice types. Change-Id: I28bc6373bb42d9abf4f179664dbaab8d514a6ab9 Reviewed-on: https://go-review.googlesource.com/14376 Reviewed-by: Keith Randall <khr@golang.org>
diff --git a/src/cmd/compile/internal/gc/ssa.go b/src/cmd/compile/internal/gc/ssa.go index 70990bb..a554a1d 100644 --- a/src/cmd/compile/internal/gc/ssa.go +++ b/src/cmd/compile/internal/gc/ssa.go
@@ -1722,12 +1722,12 @@ if n.Right.Left == nil { low = zero } else { - low = s.expr(n.Right.Left) + low = s.extendIndex(s.expr(n.Right.Left)) } if n.Right.Right == nil { high = len } else { - high = s.expr(n.Right.Right) + high = s.extendIndex(s.expr(n.Right.Right)) } // Panic if slice indices are not in bounds.