From 88d4ab82d5f89f1421a39d9342bbd1c1e2ff08b0 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Tue, 21 Mar 2017 22:07:23 -0700 Subject: [PATCH] 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 TryBot-Result: Gobot Gobot Reviewed-by: Dave Cheney --- src/cmd/internal/obj/pass.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cmd/internal/obj/pass.go b/src/cmd/internal/obj/pass.go index dbc437deb5e..644f42cab01 100644 --- a/src/cmd/internal/obj/pass.go +++ b/src/cmd/internal/obj/pass.go @@ -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 {