mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: call fieldtrack after flushing Progs
Fixes #20014 Change-Id: Ie58d3e989f2d7388b3d8849fbcfbceed3c6aa084 Reviewed-on: https://go-review.googlesource.com/41132 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
6b451ce3f3
commit
33fd319cbc
1 changed files with 2 additions and 1 deletions
|
|
@ -211,12 +211,13 @@ func compile(fn *Node) {
|
|||
ssafn := buildssa(fn)
|
||||
pp := newProgs(fn)
|
||||
genssa(ssafn, pp)
|
||||
fieldtrack(pp.Text.From.Sym, fn.Func.FieldTrack)
|
||||
if pp.Text.To.Offset < 1<<31 {
|
||||
pp.Flush()
|
||||
} else {
|
||||
largeStackFrames = append(largeStackFrames, fn.Pos)
|
||||
}
|
||||
// fieldtrack must be called after pp.Flush. See issue 20014.
|
||||
fieldtrack(pp.Text.From.Sym, fn.Func.FieldTrack)
|
||||
pp.Free()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue