1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:18:32 -06:00

cmd/compile/internal/inline/inlheur: delete ConstExpr case

ir.ConstExpr was deleted in CL 526395, so no need to check for it.
Fixes the build error.

Change-Id: I642dab70d17369bc7c9ae880666ef42ff099b770
Reviewed-on: https://go-review.googlesource.com/c/go/+/526196
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
Dmitri Shuralyov 2023-09-08 19:28:58 -04:00 committed by Gopher Robot
parent b7a2f62c71
commit 4651c0c6d9

View File

@ -139,8 +139,7 @@ func (ec *exprClassifier) Visit(n ir.Node) {
ndisp = exprLiterals
case ir.OLITERAL:
if _, ok := n.(*ir.ConstExpr); ok {
} else if _, ok := n.(*ir.BasicLit); ok {
if _, ok := n.(*ir.BasicLit); ok {
} else {
panic("unexpected")
}