mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: use AuxInt to store shift boundedness
Fixes ssacheck build. Change-Id: Idf1d2ea9a971a1f17f2fca568099e870bb5d913f Reviewed-on: https://go-review.googlesource.com/110122 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
This commit is contained in:
parent
af5143e384
commit
743fd9171f
2 changed files with 2 additions and 2 deletions
|
|
@ -994,7 +994,7 @@ func simplifyBlock(sdom SparseTree, ft *factsTable, b *Block) {
|
|||
}
|
||||
bits := 8 * v.Args[0].Type.Size()
|
||||
if lim.umax < uint64(bits) || (lim.max < bits && ft.isNonNegative(by)) {
|
||||
v.Aux = true
|
||||
v.AuxInt = 1 // see shiftIsBounded
|
||||
if b.Func.pass.debug > 0 {
|
||||
b.Func.Warnl(v.Pos, "Proved %v bounded", v.Op)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue