diff options
| author | Daniel Martà <mvdan@mvdan.cc> | 2017-02-06 11:03:58 +0000 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-02-07 16:42:32 +0000 |
| commit | 99df7c9caa19d99747c4766be171c9487c9645cf (patch) | |
| tree | 3faa60d5ebd1aa45226e5d928991d98ecb9ba8c8 /src/cmd/link/internal/ld/deadcode.go | |
| parent | e62aab1274c25364fe8c4609c17cb0d8e57b78d0 (diff) | |
| download | go-99df7c9caa19d99747c4766be171c9487c9645cf.tar.xz | |
cmd/link, crypto/tls: don't use append loops
Change-Id: Ib47e295e8646b769c30fd81e5c7f20f964df163e
Reviewed-on: https://go-review.googlesource.com/36335
Reviewed-by: Filippo Valsorda <hi@filippo.io>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/link/internal/ld/deadcode.go')
| -rw-r--r-- | src/cmd/link/internal/ld/deadcode.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/link/internal/ld/deadcode.go b/src/cmd/link/internal/ld/deadcode.go index ae516818f5..5d19f407cc 100644 --- a/src/cmd/link/internal/ld/deadcode.go +++ b/src/cmd/link/internal/ld/deadcode.go @@ -254,9 +254,7 @@ func (d *deadcodepass) init() { } } } - for _, name := range markextra { - names = append(names, name) - } + names = append(names, markextra...) for _, s := range dynexp { d.mark(s, nil) } |
