]> Cypherpunks repositories - gostls13.git/commitdiff
net/netip: fix TestInlining after CL 585057
authorTobias Klauser <tklauser@distanz.ch>
Tue, 14 May 2024 06:56:12 +0000 (08:56 +0200)
committerGopher Robot <gobot@golang.org>
Tue, 14 May 2024 16:17:33 +0000 (16:17 +0000)
Addr.AsSlice is not inlinable on all architectures.

Fixes #67354

Change-Id: Ibaf7daa2e1188a05952f8df3c84255436b29478d
Reviewed-on: https://go-review.googlesource.com/c/go/+/585058
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Mateusz Poliwczak <mpoliwczak34@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/net/netip/inlining_test.go

index 6098c9619b4d4ef7afc40f3aa7425fe117e1061d..f5eb30df9091133018b0cf419d4258331a433d29 100644 (file)
@@ -31,7 +31,6 @@ func TestInlining(t *testing.T) {
        })
        wantInlinable := []string{
                "(*uint128).halves",
-               "Addr.AsSlice",
                "Addr.BitLen",
                "Addr.hasZone",
                "Addr.Is4",
@@ -81,6 +80,7 @@ func TestInlining(t *testing.T) {
        case "amd64", "arm64":
                // These don't inline on 32-bit.
                wantInlinable = append(wantInlinable,
+                       "Addr.AsSlice",
                        "Addr.Next",
                        "Addr.Prev",
                )