]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/inline/inlheur: remove ConstExpr assumption
authorMatthew Dempsky <mdempsky@google.com>
Wed, 6 Sep 2023 22:43:12 +0000 (15:43 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 7 Sep 2023 15:10:40 +0000 (15:10 +0000)
commit0725410df5221fc6552298eec41548b0ab02ac6e
tree0c66d4d0599cb699b44a0d1811b09e7c301920b4
parentae09ca6c0fd212a19096a1c9c504fe59fc7471bf
cmd/compile/internal/inline/inlheur: remove ConstExpr assumption

OLITERAL isn't always ConstExpr. It can also be BasicLit or Name.

Change-Id: I44d595830f9e206eccf6fb37bd47ddf957db0866
Reviewed-on: https://go-review.googlesource.com/c/go/+/526277
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/compile/internal/inline/inlheur/analyze_func_returns.go