mirror of
https://github.com/golang/go
synced 2024-11-26 16:36:49 -07:00
[dev.regabi] cmd/compile: unindent compileFunctions
No real code changes. Just splitting into a separate CL so the next one is easier to review. Change-Id: I428dc986b76370d8d3afc12cf19585f6384389d7 Reviewed-on: https://go-review.googlesource.com/c/go/+/283314 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
cc90e7a51e
commit
432f9ffb11
@ -93,7 +93,10 @@ func prepareFunc(fn *ir.Func) {
|
|||||||
// It fans out nBackendWorkers to do the work
|
// It fans out nBackendWorkers to do the work
|
||||||
// and waits for them to complete.
|
// and waits for them to complete.
|
||||||
func compileFunctions() {
|
func compileFunctions() {
|
||||||
if len(compilequeue) != 0 {
|
if len(compilequeue) == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
types.CalcSizeDisabled = true // not safe to calculate sizes concurrently
|
types.CalcSizeDisabled = true // not safe to calculate sizes concurrently
|
||||||
if race.Enabled {
|
if race.Enabled {
|
||||||
// Randomize compilation order to try to shake out races.
|
// Randomize compilation order to try to shake out races.
|
||||||
@ -132,4 +135,3 @@ func compileFunctions() {
|
|||||||
base.Ctxt.InParallel = false
|
base.Ctxt.InParallel = false
|
||||||
types.CalcSizeDisabled = false
|
types.CalcSizeDisabled = false
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user