aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/reflectdata
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2024-05-21 21:07:32 -0700
committerGopher Robot <gobot@golang.org>2024-11-18 19:38:28 +0000
commitbb2a5f0556fd6bb4dbbce5eef2d6317d20796ade (patch)
tree74478d496a849532e5095877b2e098036c2921e5 /src/cmd/compile/internal/reflectdata
parent80344887818a2321296ce7fa71cca8ca2520611d (diff)
downloadgo-bb2a5f0556fd6bb4dbbce5eef2d6317d20796ade.tar.xz
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 <iant@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/cmd/compile/internal/reflectdata')
-rw-r--r--src/cmd/compile/internal/reflectdata/reflect.go2
1 files changed, 1 insertions, 1 deletions
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)
}
}