1
0
mirror of https://github.com/golang/go synced 2024-11-24 05:50:13 -07:00

cmd/internal/obj: eliminate unnecessary ctxt.Cursym assignment

None of the following code uses it.

Passes toolstash-check -all.

Updates #15756

Change-Id: Ieeaaca8ba31e5c345c0c8a758d520b24be88e173
Reviewed-on: https://go-review.googlesource.com/38444
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
This commit is contained in:
Josh Bleecher Snyder 2017-03-21 22:07:23 -07:00
parent 2c47c3e22e
commit 88d4ab82d5

View File

@ -142,8 +142,6 @@ func linkpatch(ctxt *Link, sym *LSym) {
var name string
var q *Prog
ctxt.Cursym = sym
for p := sym.Text; p != nil; p = p.Link {
checkaddr(ctxt, p, &p.From)
if p.From3 != nil {