mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link: remove pointless assignment in SetSymAlign
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>
This commit is contained in:
parent
e6cff69051
commit
94f47fc03f
1 changed files with 0 additions and 3 deletions
|
|
@ -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)))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue