mirror of
https://github.com/golang/go
synced 2024-11-18 20:04:52 -07: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:
parent
b7a2f62c71
commit
4651c0c6d9
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user