From bb2a5f0556fd6bb4dbbce5eef2d6317d20796ade Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 21 May 2024 21:07:32 -0700 Subject: cmd: change from sort functions to slices functions Doing this because the slices functions are slightly faster and slightly easier to use. It also removes one dependency layer. We did this outside of bootstrap tools in CL 587655. Now that the bootstrap compiler is 1.22, we can do this in more code. Change-Id: I9ed2dd473758cacd14f76a0639368523ccdff72f Reviewed-on: https://go-review.googlesource.com/c/go/+/626038 Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Damien Neil --- src/cmd/compile/internal/reflectdata/reflect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/compile/internal/reflectdata') diff --git a/src/cmd/compile/internal/reflectdata/reflect.go b/src/cmd/compile/internal/reflectdata/reflect.go index de7e4755d3..c26ac3d74c 100644 --- a/src/cmd/compile/internal/reflectdata/reflect.go +++ b/src/cmd/compile/internal/reflectdata/reflect.go @@ -145,7 +145,7 @@ func imethods(t *types.Type) []*typeSig { } if n := len(methods); n > 0 { last := methods[n-1] - if !last.name.Less(f.Sym) { + if types.CompareSyms(last.name, f.Sym) >= 0 { base.Fatalf("sigcmp vs sortinter %v %v", last.name, f.Sym) } } -- cgit v1.3