]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/inline/inlheur: fixup tests for NewBasicLit change
authorThan McIntosh <thanm@google.com>
Mon, 11 Sep 2023 16:27:17 +0000 (12:27 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 11 Sep 2023 16:46:17 +0000 (16:46 +0000)
Fix a regression test to use the correct new signature for
ir.NewBasicLit.

Change-Id: I06c849e83a5edfce784c780b5490f461f6c3b129
Reviewed-on: https://go-review.googlesource.com/c/go/+/527318
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/cmd/compile/internal/inline/inlheur/texpr_classify_test.go

index 4b0bfd95895b37a053e690162ff7ca444cc07fcd..587eab03fcb954a95e1c576e8280be1e6fbc409b 100644 (file)
@@ -57,11 +57,11 @@ func un(op ir.Op, x ir.Node) ir.Node {
 }
 
 func liti(i int64) ir.Node {
-       return ir.NewBasicLit(pos, constant.MakeInt64(i))
+       return ir.NewBasicLit(pos, types.Types[types.TINT64], constant.MakeInt64(i))
 }
 
 func lits(s string) ir.Node {
-       return ir.NewBasicLit(pos, constant.MakeString(s))
+       return ir.NewBasicLit(pos, types.Types[types.TSTRING], constant.MakeString(s))
 }
 
 func (s *state) nm(name string, t *types.Type) *ir.Name {