]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.unified] cmd/compile/internal/typecheck: replace unreachable code with assert
authorMatthew Dempsky <mdempsky@google.com>
Tue, 21 Jun 2022 12:22:00 +0000 (05:22 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 23 Jun 2022 21:53:52 +0000 (21:53 +0000)
commitc70e93ff3d1855b0d0a0508ab83dd751ee65f5b3
tree90f956042b983e65da25f07b596f4f3df9a38837
parent20e1d5ac8cc269c8fc40d08e0b9e14ffe99d19d3
[dev.unified] cmd/compile/internal/typecheck: replace unreachable code with assert

Since the removal of -G=0 mode, IR is always well-typed. And in
well-typed IR, convlit will always returns expressions having real
types (i.e., not untyped).

Change-Id: I1ac99a88c94777829852519347a716d19af7948c
Reviewed-on: https://go-review.googlesource.com/c/go/+/413363
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/typecheck/subr.go