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>
}
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 {