]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: remove pointless assignment in SetSymAlign
authorIan Lance Taylor <iant@golang.org>
Fri, 24 Oct 2025 00:25:52 +0000 (17:25 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 24 Oct 2025 18:43:28 +0000 (11:43 -0700)
This code path became useless after CL 231220.

Change-Id: I35c25368652eeb107350dcd9d1b283429ad3d5e4
Reviewed-on: https://go-review.googlesource.com/c/go/+/714500
Auto-Submit: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/loader/loader.go

index cef17fae7817987a73cdec1e8374969277578c92..3fb2e86514a086aea2093a0d04564347fb98ad17 100644 (file)
@@ -1351,9 +1351,6 @@ func (l *Loader) SetSymAlign(i Sym, align int32) {
        if int(i) >= len(l.align) {
                l.align = append(l.align, make([]uint8, l.NSym()-len(l.align))...)
        }
-       if align == 0 {
-               l.align[i] = 0
-       }
        l.align[i] = uint8(bits.Len32(uint32(align)))
 }