aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa
diff options
context:
space:
mode:
authoryangwenmai <yangwen.yw@gmail.com>2021-04-27 08:30:25 +0800
committerKeith Randall <khr@golang.org>2021-04-27 16:25:40 +0000
commitd553c0144d2a532b3e962715899d6cd9db47192a (patch)
tree012566542c36f93d67662da52a670c15feee4572 /src/cmd/compile/internal/ssa
parentbc6288794de10fddea0a3c3cfcb1cfd2bf2aa8a0 (diff)
downloadgo-d553c0144d2a532b3e962715899d6cd9db47192a.tar.gz
go-d553c0144d2a532b3e962715899d6cd9db47192a.zip
bits: use same expression with system bit size
Change-Id: Ibce07f8f36f7c64f7022ce656f8efbec5dff3f82 Reviewed-on: https://go-review.googlesource.com/c/go/+/313829 Reviewed-by: Robert Griesemer <gri@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa')
-rw-r--r--src/cmd/compile/internal/ssa/poset.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssa/poset.go b/src/cmd/compile/internal/ssa/poset.go
index 1e04b48ba4..d2719eb8a1 100644
--- a/src/cmd/compile/internal/ssa/poset.go
+++ b/src/cmd/compile/internal/ssa/poset.go
@@ -12,7 +12,7 @@ import (
// If true, check poset integrity after every mutation
var debugPoset = false
-const uintSize = 32 << (^uint(0) >> 32 & 1) // 32 or 64
+const uintSize = 32 << (^uint(0) >> 63) // 32 or 64
// bitset is a bit array for dense indexes.
type bitset []uint