Skip to content

Commit

Permalink
go/types, types2: remove unnecessary assert on pointer size
Browse files Browse the repository at this point in the history
As described in golang#61249, uncommon pointer sizes do exist. Remove an
unnecessary assertion.

Fixes golang#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]>
  • Loading branch information
findleyr authored and bradfitz committed Aug 2, 2023
1 parent 1d7212a commit 73cec75
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/cmd/compile/internal/types2/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
1 change: 0 additions & 1 deletion src/go/types/const.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 73cec75

Please sign in to comment.