Skip to content

Commit d983be9

Browse files
findleyrgopherbot
authored andcommitted
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 <[email protected]> Auto-Submit: Robert Findley <[email protected]> Run-TryBot: Robert Findley <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 9b33543 commit d983be9

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/cmd/compile/internal/types2/const.go

-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ func representableConst(x constant.Value, check *Checker, typ *Basic, rounded *c
7373

7474
sizeof := func(T Type) int64 {
7575
s := conf.sizeof(T)
76-
assert(s == 4 || s == 8)
7776
return s
7877
}
7978

src/go/types/const.go

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)