Skip to content

Commit 94f47fc

Browse files
ianlancetaylorgopherbot
authored andcommitted
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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: David Chase <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
1 parent e6cff69 commit 94f47fc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/cmd/link/internal/loader/loader.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,9 +1351,6 @@ func (l *Loader) SetSymAlign(i Sym, align int32) {
13511351
if int(i) >= len(l.align) {
13521352
l.align = append(l.align, make([]uint8, l.NSym()-len(l.align))...)
13531353
}
1354-
if align == 0 {
1355-
l.align[i] = 0
1356-
}
13571354
l.align[i] = uint8(bits.Len32(uint32(align)))
13581355
}
13591356

0 commit comments

Comments
 (0)