From a86ef0409b76f430912f9ebbe1c0d2e5e834fd6d Mon Sep 17 00:00:00 2001 From: Than McIntosh Date: Mon, 11 Sep 2023 12:27:17 -0400 Subject: [PATCH] cmd/compile/internal/inline/inlheur: fixup tests for NewBasicLit change 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 Reviewed-by: Cherry Mui Auto-Submit: Than McIntosh LUCI-TryBot-Result: Go LUCI --- .../compile/internal/inline/inlheur/texpr_classify_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/compile/internal/inline/inlheur/texpr_classify_test.go b/src/cmd/compile/internal/inline/inlheur/texpr_classify_test.go index 4b0bfd95895..587eab03fcb 100644 --- a/src/cmd/compile/internal/inline/inlheur/texpr_classify_test.go +++ b/src/cmd/compile/internal/inline/inlheur/texpr_classify_test.go @@ -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 {