diff --git a/src/cmd/compile/internal/types2/const.go b/src/cmd/compile/internal/types2/const.go index 9be578c6470861..af27c727dd2e70 100644 --- a/src/cmd/compile/internal/types2/const.go +++ b/src/cmd/compile/internal/types2/const.go @@ -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 } diff --git a/src/go/types/const.go b/src/go/types/const.go index 66fa60804f5767..bffea146a0c7cb 100644 --- a/src/go/types/const.go +++ b/src/go/types/const.go @@ -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 }