mirror of
https://github.com/golang/go
synced 2024-11-18 18:04:46 -07:00
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 <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>
This commit is contained in:
parent
ea8c05508b
commit
a86ef0409b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user