go/src/cmd
Cuong Manh Le 376a079762 cmd/compile: fix unified IR panic when expanding nested inline function
When reading body of inlining function, which has another inlined
function in the body, the reader still add this inlined function to
todoBodies, which it shouldn't because the inlined function was read
already.

To fix this, introduce new flag to signal that we are done construting
all functions in todoBodies, thus the addBody shouldn't add anything
to todoBodies then.

Updates #48094

Change-Id: I45105dd518f0a7b69c6dcbaf23b957623f271203
Reviewed-on: https://go-review.googlesource.com/c/go/+/347529
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2021-09-09 04:37:47 +00:00
..
addr2line
api
asm cmd/internal/obj/arm64: add checks for incorrect use of REGTMP register 2021-09-09 01:23:30 +00:00
buildid
cgo cmd/cgo: fix unused parameter warnings in generated _cgo_main.c 2021-08-16 23:03:03 +00:00
compile cmd/compile: fix unified IR panic when expanding nested inline function 2021-09-09 04:37:47 +00:00
cover
dist cmd/dist: remove unused variables 2021-08-19 20:50:13 +00:00
doc
fix
go cmd/go: print offending -mod value in workspace mode 2021-09-08 18:48:02 +00:00
gofmt
internal cmd/internal/obj/arm64: add checks for incorrect use of REGTMP register 2021-09-09 01:23:30 +00:00
link cmd/link: rework .TOC. handling for ppc64le 2021-09-08 11:57:03 +00:00
nm
objdump
pack
pprof
test2json
trace cmd/trace: use newTaskDesc to create taskDesc 2021-08-17 16:22:15 +00:00
vendor cmd/pprof: update vendored github.com/google/pprof 2021-09-08 15:36:36 +00:00
vet [dev.typeparams] all: merge master (46fd547) into dev.typeparams 2021-08-12 12:43:12 -07:00
README.vendor
go.mod cmd/pprof: update vendored github.com/google/pprof 2021-09-08 15:36:36 +00:00
go.sum cmd/pprof: update vendored github.com/google/pprof 2021-09-08 15:36:36 +00:00

README.vendor

See src/README.vendor for information on loading vendored packages
and updating the vendor directory.