mirror of https://github.com/golang/go.git
go/types, types2: remove unnecessary assert on pointer size
As described in #61249, uncommon pointer sizes do exist. Remove an unnecessary assertion. Fixes #61249 Change-Id: Ib15857bd6bcd42ec530817a132bb8db036236c3b Reviewed-on: https://go-review.googlesource.com/c/go/+/508821 Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
9b33543339
commit
d983be9cb5
|
|
@ -73,7 +73,6 @@ func representableConst(x constant.Value, check *Checker, typ *Basic, rounded *c
|
|||
|
||||
sizeof := func(T Type) int64 {
|
||||
s := conf.sizeof(T)
|
||||
assert(s == 4 || s == 8)
|
||||
return s
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,6 @@ func representableConst(x constant.Value, check *Checker, typ *Basic, rounded *c
|
|||
|
||||
sizeof := func(T Type) int64 {
|
||||
s := conf.sizeof(T)
|
||||
assert(s == 4 || s == 8)
|
||||
return s
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue