mirror of
https://github.com/golang/go
synced 2024-11-23 21:00:06 -07:00
cmd/compile: remove superfluous SetBounded call
The call does nothing when applied to an OLSH node. It would be unnecessary anyway, since we're shifting by a small constant. Passes toolstash-check. Change-Id: If858711f1704f44637fa0f6a4c66cbaad6db24b8 Reviewed-on: https://go-review.googlesource.com/c/go/+/228699 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
This commit is contained in:
parent
b1cae8cd1d
commit
80e5c3b8b5
@ -840,7 +840,6 @@ opswitch:
|
||||
n.Left = cheapexpr(n.Left, init)
|
||||
// byteindex widens n.Left so that the multiplication doesn't overflow.
|
||||
index := nod(OLSH, byteindex(n.Left), nodintconst(3))
|
||||
index.SetBounded(true)
|
||||
if thearch.LinkArch.ByteOrder == binary.BigEndian {
|
||||
index = nod(OADD, index, nodintconst(7))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user