aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/typecheck/dcl.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2021-01-03 14:24:25 -0800
committerMatthew Dempsky <mdempsky@google.com>2021-01-04 10:30:07 +0000
commit290b4154b73b54045a147f463c6988b935d75d49 (patch)
tree4a5b324068102b980343e487e4b0b6a0ca7c2d57 /src/cmd/compile/internal/typecheck/dcl.go
parenta30fd5288415cb1e4a91ec89fac725a9ee7a3d05 (diff)
downloadgo-290b4154b73b54045a147f463c6988b935d75d49.tar.gz
go-290b4154b73b54045a147f463c6988b935d75d49.zip
[dev.regabi] cmd/compile: fix ICE due to large uint64 constants
It's an error to call Int64Val on constants that don't fit into int64. CL 272654 made the compiler stricter about detecting misuse, and revealed that we were using it improperly in detecting consecutive integer-switch cases. That particular usage actually did work in practice, but it's easy and best to just fix it. Fixes #43480. Change-Id: I56f722d75e83091638ac43b80e45df0b0ad7d48d Reviewed-on: https://go-review.googlesource.com/c/go/+/281272 Trust: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Diffstat (limited to 'src/cmd/compile/internal/typecheck/dcl.go')
0 files changed, 0 insertions, 0 deletions