Use a local variable instead.
Passes toolstash -cmp.
Change-Id: I9623a40ff0d568f11afd1279b6aaa1c33eda644c
Reviewed-on: https://go-review.googlesource.com/20730
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Gotype *LSym
Autom *Auto
Text *Prog
- Etext *Prog
Pcln *Pcln
P []byte
R []Reloc
// Ignore ctxt->plist boundaries. There are no guarantees there,
// and the assemblers just use one big list.
var curtext *LSym
+ var etext *Prog
var text []*LSym
for pl := ctxt.Plist; pl != nil; pl = pl.Link {
}
s.Type = STEXT
s.Text = p
- s.Etext = p
+ etext = p
curtext = s
continue
}
if curtext == nil {
+ etext = nil
continue
}
- s := curtext
- s.Etext.Link = p
- s.Etext = p
+ etext.Link = p
+ etext = p
}
}
linkpcln(ctxt, s)
if freeProgs {
s.Text = nil
- s.Etext = nil
}
}
_64bit uintptr // size on 64bit platforms
}{
{Addr{}, 52, 80},
- {LSym{}, 88, 152},
+ {LSym{}, 84, 144},
{Prog{}, 196, 288},
}