From: Josh Bleecher Snyder Date: Mon, 27 Mar 2017 18:50:43 +0000 (-0700) Subject: cmd/internal/obj: eliminate stray ctxt.Cursym write X-Git-Tag: go1.9beta1~954 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=aca58647b7b71a0efa2634e4ab67f8f0ba24d2e3;p=gostls13.git cmd/internal/obj: eliminate stray ctxt.Cursym write It is explicitly assigned in each of the assemblers as needed. I plan to remove Cursym entirely eventually, but this is a helpful intermediate step. Passes toolstash-check -all. Updates #15756 Change-Id: Id7ddefae2def439af44d03053886ca8cc935731f Reviewed-on: https://go-review.googlesource.com/38727 Run-TryBot: Josh Bleecher Snyder Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/internal/obj/pcln.go b/src/cmd/internal/obj/pcln.go index 7d03d52734..ca8d1b7484 100644 --- a/src/cmd/internal/obj/pcln.go +++ b/src/cmd/internal/obj/pcln.go @@ -252,8 +252,6 @@ func pctopcdata(ctxt *Link, sym *LSym, oldval int32, p *Prog, phase int32, arg i } func linkpcln(ctxt *Link, cursym *LSym) { - ctxt.Cursym = cursym - pcln := &cursym.Pcln npcdata := 0